当前位置:网站首页>In the idea to create a web project _idea deployment of the web project
In the idea to create a web project _idea deployment of the web project
2022-08-02 18:37:00 【The whole stack programmer webmaster】
大家好,又见面了,我是你们的朋友全栈君.
前言:
I'm glad to be able to answer your questions with what I've learned!!!
Today I'll show you how to use itideaThis software createsweb项目.
步骤:
1.创建项目
首先新建一个项目
然后选择最后一个,创建一个空白的Java项目,点击Next.
This time give the project a name,我在这里命名为java_web,The following one can change the path where the project is stored,I put it in a custom path here,点击Finish.
刚进来的时候,ideaWill remind you whether to create a new module,先点击×,We will create the module in a while.
2.配置jdk
这个时候,我们先来配置jdk的路径,以及tomcat的路径,It is convenient to use when creating modules later. 通过file找到Project Structure.
选择Project,开始添加jdk路径,找到你的jdk安装路径.
当jdk导入进来后,The one below should also be changed,如果你安装的是jdk1.8的版本,则选择8,如果你安装的是12版本,Then select the corresponding one12,最后选择ok.
到此,jdk我们已经配置好了,Next we start to configuretomcat路径了.
3.配置Tomcat
点击上面的run,找到这个.
点击上面的+号,Remember to chooseTomcat Server,不要选择TomEE Server.
按照下面的步骤,找到tomcat的路径,Remember that the path is heretomcat主目录路径,不要选择bin目录.
然后选择你要使用的jdk版本,之前已经设置过了,This will default to your previous selection,如果没有,You choose to follow beforejdkThe version can be the same,点击Apply,然后点击ok.
设置成功后,It will be displayed in the lower left corner of the interfaceTomcat Server.
4.创建web模块
截至到现在,我们已经配置好了jdk和tomcat,Then we will nextweb模块了. 按照下面的步骤,Let's start creating modules.
这个时候我们选择Java Enterprise,On the right, select what we have configuredjdk和tomcat,并勾选上 Web Application,点击next.
At this point, you need to name the project,我命名为DemoTest,Note that this time directly change the one below,Then you can change the other two at the same time,点解next.
At this time, we have also created the module.
At this point we can run oursweb项目了.
感谢您们的支持,谢谢!!!
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/125152.html原文链接:https://javaforall.cn
边栏推荐
猜你喜欢
随机推荐
一文搞懂│php 中的 DI 依赖注入
CefSharp practical demonstration
Special Variables (SQL)
《独行月球》
机械臂速成小指南(十六):带抛物线过渡的线性规划
tiup mirror rotate
领导无线边缘AI的联合神经形态学习,具有较高的识别精度以及较低的能耗
Default username and password (SQL)
Arduino 硬件编程语言基础学习入门
莫比乌斯反演学习笔记
【学术相关】北大一研究生偷取同门师妹论文发表,作者却挂名给了武大 3 位不知情的学生......
数字孪生园区场景中的坐标知识
word公式复制到另一个word当中出现图片解决方案
制胜精细化运营时代 华为应用市场打出内容、场景、商业运营组合拳
面试官:可以谈谈乐观锁和悲观锁吗
机械臂速成小指南(十七):直线规划
2022 年值得尝试的 7 个 MQTT 客户端工具
DSP-ADAU1452参考音设置方法
QACTION_QA百科
tiup mirror sign