如何将maven转为完整的web工程

1:右击点击maven Project项目选择Properties
在这里插入图片描述2:点击Maven选择Project Facets,点击java填写你jdk的版本,如果是1.8就选1.8,点击Dynamic Web Module勾选
在这里插入图片描述3:点击 Further configuration available…连接跳转到一个页面为Web Module,将Content directory中的WebContent改为src/main/webapp勾选下面的选框点击完成点击应用即可
在这里插入图片描述4:点击pom.xml在标签下写标签在浏览器中搜索maven repository 你所需要的jar包点击复制在标签中
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/qq_40744061/article/details/85011966