Intellij IDEA2021.1创建Java web项目(超详细)

2年前 (2022) 程序员胖胖胖虎阿
339 0 0

Intellij IDEA2021.1

Intellij IDEA2021.1创建Java web项目(超详细)
Intellij IDEA2021.1创建Java web项目(超详细)
点击next
Intellij IDEA2021.1创建Java web项目(超详细)
填写项目的名称以及位置,finish
Intellij IDEA2021.1创建Java web项目(超详细)
右键项目,选择add framework support
Intellij IDEA2021.1创建Java web项目(超详细)
Intellij IDEA2021.1创建Java web项目(超详细)
完成之后,项目结构变成了这样
Intellij IDEA2021.1创建Java web项目(超详细)
接下来,我们在WEB-INF下创建classes,lib文件夹
Intellij IDEA2021.1创建Java web项目(超详细)
编辑项目结构
Intellij IDEA2021.1创建Java web项目(超详细)

将output path的路径改成classes文件夹的路径
Intellij IDEA2021.1创建Java web项目(超详细)
接下来点击dependencies,选择加号,选择jars or directories
Intellij IDEA2021.1创建Java web项目(超详细)
点击后,他会弹出一个文件选择框,这里选择lib文件所在位置,之后按照下面这张图
Intellij IDEA2021.1创建Java web项目(超详细)
Intellij IDEA2021.1创建Java web项目(超详细)
完成以上这些,我们配置web容器(注意:这里是tomcat Server,不是tomcatEE Server)
Intellij IDEA2021.1创建Java web项目(超详细)
第一步配置tomcat所在路径,第二步配置jre/jdk,第三步填写web容器名字,这里可以写tomcat+版本号
Intellij IDEA2021.1创建Java web项目(超详细)
Intellij IDEA2021.1创建Java web项目(超详细)
Intellij IDEA2021.1创建Java web项目(超详细)
完成后,点击OK即可
最后点击右上角的绿色三角形启动容器
Intellij IDEA2021.1创建Java web项目(超详细)
大功告成!!

版权声明:程序员胖胖胖虎阿 发表于 2022年10月21日 上午7:48。
转载请注明:Intellij IDEA2021.1创建Java web项目(超详细) | 胖虎的工具箱-编程导航

相关文章

暂无评论

暂无评论...