tomcat在发布项目的时候没有同时发布maven依赖所添加的jar包,所以找不到
解决方法:设置一下eclipse:
项目 —> properties -> Deployment Assembly -> Add -> Java Build Path Entries -> 选择Maven Dependencies -> Finish -> OK
把对应的Maven依赖包也发布到tomcat,调试时会自动把那些jar发布到指定目录下,tomcat也能找到那些jar了。
相关文章
- 10-11maven项目报错'Building workspace' has encountered a problem
- 10-11spring boot项目启动报错
- 10-11IDEA启动项目报错:找不到或无法加载主类
- 10-11项目启动报错怎么办?看看你Spring自动注入用对了嘛?@Autowired XxxService注入问题解决
- 10-11Eclipse 创建maven项目 报错 one or more constraints have not been satisfied
- 10-11idea创建项目报错(Maven execution terminated abnormally (exit code 1) )解决方案
- 10-11关于Django项目启动报错RuntimeError: Model class wechat.models.UserInfo doesn't declare an explicit app_
- 10-11Springboot项目Maven打包报错:Failed to execute goal org.apache.maven.plugins:maven-resources-plugin:3.2.0:r
- 10-11create-react-app 创建react ts项目启动报错
- 10-11SpringBoot项目运行正常但是打包报错[ERROR] Failed to execute goal org.springframework.boot:spring-boot-maven-plug