IDEA 使用maven创建web项目到tomcat
作者:
煎包小混沌 | 来源:发表于
2018-12-26 19:22 被阅读0次
1:使用maven创建web项目

image.png
填写groupId和artifactId

image.png
等待maven配置项目,最后的目录

image.png
开始部署到tomcat上,按住command+; ,到Project Structure

image.png
2:配置项目到tomcat
在Project Structure中,选择如下

image.png
点击+,接着选择点击Directory Content, 找到web.xml所在的目录,点击OK,路径一定不能错,不然会404

image.png
点击Build Artifacts,会自动出现输出war的目录

image.png
选择Add configuration,找到tomcat,选择Local

image.png
Application server选择下载的tomcat路径

image.png
Deployment添加之前 配置的Artifact,点击OK

image.png
3:启动tomcat
选择Run 'xxxxx'

image.png
启动成功

image.png
本文标题:IDEA 使用maven创建web项目到tomcat
本文链接:https://www.haomeiwen.com/subject/dniakqtx.html
网友评论