springboot启动报java.io.FileNotFoundException:问题解决

当SpringBoot项目启动时出现'java.io.FileNotFoundException'警告,尽管不影响运行,但为解决问题,尝试通过过滤pom文件中无关jar包失败。经过调试和研究,发现原因是Tomcat在加载依赖时会分析jar的Manifest文件中的classpath,导致额外加载未必要求的jar。解决办法是关闭自动解析Manifest中的classpath。详情可参考相关博客。
摘要由CSDN通过智能技术生成
2020-05-29 16:13:14.844  INFO 2896 --- [           main] com.baizhi.yxh.YingxueYxhApplication     : Starting YingxueYxhApplication on DESKTOP-NMOCS9G with PID 2896 (G:\ideaWorkSpace\yingxue_yxh\target\classes started by job in G:\ideaWorkSpace\yingxue_yxh)
2020-05-29 16:13:14.860  INFO 2896 --- [           main] com.baizhi.yxh.YingxueYxhApplication     : No active profile set, falling back to default profiles: default
2020-05-29 16:13:15.969  WARN 2896 --- [           main] o.m.s.mapper.ClassPathMapperScanner      : Skipping MapperFactoryBean with name 'adminDao' and 'com.baizhi.yxh.dao.AdminDao' mapperInterface. Bean already defined with the same name!
2020-05-29 16:13:15.969  WARN 2896 --- [           main] o.m.s.mapper.ClassPathMapperScanner      : Skipping MapperFactoryBean with name 'categoryMapper' and 'com.baizhi.yxh.dao.CategoryMapper' mapperInterface. Bean already defined with the same name!
2020-05-29 16:13:15.969  WARN 2896 --- [           main] o.m.s.mapper.ClassPathMapperScanner      : Skipping MapperFactoryBean with name 'userMapper' and 'com.baizhi.yxh.dao.UserMapper' mapperInterface. Bean already defined with the same name!
2020-05-29 16:13:15.969  WARN 2896 --- [           main] o.m.s.mapper.ClassPathMapperScanner      : Skipping MapperFactoryBean with name 'videoMapper' and 'com.baizhi.yxh.dao.VideoMapper' mapperInterface. Bean already defined with the same name!
2020-05-29 16:13:15.969  WARN 2896 --- [           main] o.m.s.mapper.ClassPathMapperScanner      : No MyBatis mapper was found in '[com.baizhi.yxh.dao]' package. Please check your configuration.
2020-05-29 16:13:16.125  WARN 2896 --- [           main] o.m.s.mapper.ClassPathMapperScanner      : No MyBatis mapper was found in '[com.baizhi.yxh]' package. Please check your configuration.
2020-05-29 16:13:17.032  INFO 2896 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat initialized with port(s): 8181 (http)
2020-05-29 16:13:17.094  INFO 2896 --- [           main] o.apache.catalina.core.StandardService   : Starting service [Tomcat]
2020-05-29 16:13:17.094  INFO 2896 --- [           main] org.apache.catalina.core.StandardEngine  : Starting Servlet engine: [Apache Tomcat/9.0.21]
2020-05-29 16:13:17.704  WARN 2896 --- [           main] o.a.tomcat.util.scan.StandardJ
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值