Spring项目启动卡死在Parsed mapper file无错误日志问题解决

博客讲述了在Spring项目启动时遇到Mapper文件解析问题,但无详细错误日志。作者通过在AbstractAutowireCapableBeanFactory类的异常处理处设置断点,成功获取到错误信息,发现是Spring没有正确输出错误日志。建议如果Mybatis遇到类似情况,也可采用相同方法定位问题。计划周末向Spring官方报告此问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

错误日志如下:直接停止启动,无详细错误信息日志。 

2020-09-15 15:08:15.124 DEBUG 12 --- [main] c.m.c.c.m.CrmMybatisAutoConfiguration    : Parsed mapper file: 'URL [jar:file:/opt/webapps/sms-gateway.jar!/BOOT-INF/lib/plugin-service-1.0.jar!/config/mybatis/mapper/cn/yang/crm/plugin/service/domain/repository/PluginEntityMapper.xml]'

2020-09-15 15:08:15.136 DEBUG 12 --- [main] c.m.c.c.m.CrmMybatisAutoConfiguration    : Parsed mapper file: 'URL [jar:file:/opt/webapps/sms-gateway.jar!/BOOT-INF/lib/plugin-service-1.0.jar!/config/mybatis/mapper/cn/yang/crm/plugin/service/domain/repository/PluginIntegrationSettingEntityMapper.xml]'

2020-09-15 15:08:15.144 DEBUG 12 --- [main] c.m.c.c.m.CrmMybatisAutoConfiguration    : Parsed mapper file: 'URL [jar:file:/opt/webapps/sms-gateway.jar!/BOOT-INF/lib/core-service-1.0.jar!/config/mybatis/mapper/cn/yang/crm/core/service/domain/repository/BundleApproveLogEntityMapper.xml]'

2020-09-15 15:08:15.149 DEBUG 12 --- [main] c.m
. ____ _ __ _ _ /\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \ ( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \ \\/ ___)| |_)| | | | | || (_| | ) ) ) ) ' |____| .__|_| |_|_| |_\__, | / / / / =========|_|==============|___/=/_/_/_/ :: Spring Boot :: (v2.5.9) 2025-03-29 23:30:44.927 INFO 10080 --- [ main] com.example.SpringbootApplication : Starting SpringbootApplication using Java 1.8.0_341 on DESKTOP-EUNUR1G with PID 10080 (D:\毕业设计\manager\springboot\target\classes started by DELL in D:\毕业设计\manager) 2025-03-29 23:30:44.929 INFO 10080 --- [ main] com.example.SpringbootApplication : No active profile set, falling back to default profiles: default 2025-03-29 23:30:45.709 INFO 10080 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 9090 (http) 2025-03-29 23:30:45.716 INFO 10080 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat] 2025-03-29 23:30:45.716 INFO 10080 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.56] 2025-03-29 23:30:45.800 INFO 10080 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext 2025-03-29 23:30:45.800 INFO 10080 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 836 ms Logging initialized using 'class org.apache.ibatis.logging.stdout.StdOutImpl' adapter. Parsed mapper file: 'file [D:\毕业设计\manager\springboot\target\classes\mapper\AdminMapper.xml]' Parsed mapper file: 'file [D:\毕业设计\manager\springboot\target\classes\mapper\NoticeMapper.xml]' ,------. ,--. ,--. ,--. | .--. ' ,--,--. ,---. ,---. | '--' | ,---. | | ,---. ,---. ,--.--. | '--' | ' ,-. | | .-. | | .-. : | .--. | | .-. : | | | .-. | | .-. : | .--' | | -
最新发布
03-30
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值