使用IDEA创建Web项目以及实现hello world

2025-10-11 02:11:16

1、双击打开idea

使用IDEA创建Web项目以及实现hello world

使用IDEA创建Web项目以及实现hello world

2、点击File 选择New 点击Project

使用IDEA创建Web项目以及实现hello world

3、选择第一项java 选择java EE下的Web Application 然后点击Next进入下一步

使用IDEA创建Web项目以及实现hello world

4、写项目的名称,选择项目所在的文件夹 点击finish完成

使用IDEA创建Web项目以及实现hello world

5、等一会儿就可以看见下图的工程目录结构了

使用IDEA创建Web项目以及实现hello world

1、点击右上角的有一个下三角形状的图标,然后点击Edit Configuration...

使用IDEA创建Web项目以及实现hello world

2、出现这个界面点击Default,选择Tomcat Server下的Local

使用IDEA创建Web项目以及实现hello world

使用IDEA创建Web项目以及实现hello world

3、配置Tomcat服务器,按照下图步骤进行配置即可

使用IDEA创建Web项目以及实现hello world

使用IDEA创建Web项目以及实现hello world

使用IDEA创建Web项目以及实现hello world

4、配置完成

使用IDEA创建Web项目以及实现hello world

1、按照下图打开配置

使用IDEA创建Web项目以及实现hello world

2、点击加号选择Tomcat Server 再选择Local

使用IDEA创建Web项目以及实现hello world

3、按照下图进行配置

使用IDEA创建Web项目以及实现hello world

4、成功

使用IDEA创建Web项目以及实现hello world

5、测试web工程

使用IDEA创建Web项目以及实现hello world

6、等一会,浏览器会自动跳转出现下面的界面就表示大功告成了哈哈哈

使用IDEA创建Web项目以及实现hello world

声明:本网站引用、摘录或转载内容仅供网站访问者交流或参考,不代表本站立场,如存在版权或非法内容,请联系站长删除,联系邮箱:site.kefu@qq.com。
猜你喜欢