eclipse改变项目发布路径的问题
程序员文章站
2022-07-13 15:31:18
...
项目发布省去前面的项目名:
Dynamic Web Project
右键项目 – properties – WebProjectSetting – 修改Context root为 /
Maven
<build>
<plugins>
<!--跳过测试类打包 -->
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skip>true</skip>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
<version>2.2</version>
<configuration>
<!--端口号 -->
<port>8092</port>
<!--项目发布路径 -->
<path>/</path>
</configuration>
</plugin>
</plugins>
</build>
maven build,看使用什么版本的tomcat,如果使用tomcat7
加上:tomcat7:run错误:tomcat:run
上一篇: 雪花算法工具类SnowFlakeUtils生成全局唯一ID
下一篇: 佳软分享之markdown
推荐阅读
-
解决vue-cli项目打包出现空白页和路径错误的问题
-
MyEclipse项目中的构建路径和类路径lib的问题分享
-
解决vue项目使用font-awesome,build后路径的问题
-
解决vue-cli项目webpack打包后iconfont文件路径的问题
-
解决在vue项目中,发版之后,背景图片报错,路径不对的问题
-
关于vscode 默认添加python项目的源目录路径到执行环境的问题
-
关于vscode 默认添加python项目的源目录路径到执行环境的问题
-
解决vue-cli项目打包出现空白页和路径错误的问题
-
解决Eclipse导入项目后Validating验证缓慢的问题
-
关于vue.js发布后路径引用的问题解决