您的位置: 首页 > 文章 > IDEA中创建maven web工程(一) IDEA中创建maven web工程(一) 分类: 文章 • 2024-05-29 18:23:28 1、打开IDEA创建项目,选择Maven 2、等待项目加载完之后,点击Project Structure,选择Modules 3、修改web.xml和webapp 4、设置Artifacts 5、配置Tomcat 注意: war模式:将WEB工程以包的形式上传到服务器 。 war exploded模式:将WEB工程以当前文件夹的位置关系上传到服务器。 6、修改项目war包部署的路径 默认是在 你的项目路径\项目名\target下, 可以在Project Structure下的Artifacts下的Output directory修改 修改项目的部署路径为tomcat的webapps下: