当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
研发了 5 年的时序数据库,到底要解决什么问题?
跨境电商看不到另一面:商家刷单、平台封号、黑灰产牟利
一文搞懂│php 中的 DI 依赖注入
编写一个油猴脚本
多商户商城系统功能拆解20讲-平台端分销概况
【服务器数据恢复】Raid阵列更换故障硬盘后数据同步失败的数据恢复案例
每日练习------定义一个N*N二维数组,从键盘上输入值,找出每行中最大值组成一个一维数组并输出;
基于深度学习的机器人目标识别和跟踪
在idea中创建web项目_idea部署web项目
DevOps开发工具对比
JZ42 连续子数组的最大和
Break the stereotype, DIY is your own unique mall
一文搞懂│php 中的 DI 依赖注入
Qt读取Json文件(含源码+注释)
打破千篇一律,DIY属于自己独一无二的商城
机械臂速成小指南(十六):带抛物线过渡的线性规划
CWE4.8: The 25 most damaging software security issues in 2022
let块级作用域,var变量提升
DevOps开发工具对比
JZ11 旋转数组的最小数字

![牛客的课程订单分析[分组统计时如何取指定行字段?]](/img/9d/d27b8372ae5e5f1c7b9e6f5e9bb1f6.png)







