spring boot启动报错:Bean 'configurationPropertiesRebinderAutoConfiguration' of type * is not eligible...

本文详细解析了在SpringBoot项目中遇到的YAML配置文件对齐问题,分享了一次因配置文件格式错误导致的启动失败经历。作者强调了正确配置的重要性,并提供了逐步排查和修复的方法。

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

报错信息:

 

解决方法:

spring boot启动在读取配置文件(properties、yml)时发生错误。图中可以看出是spring下的cloud配置出错。

我出错问题是yml文件配置对齐问题。。。一定要仔细看配置文件,当实在是找不到时,重写配置文件,一点一点的配置并启动,切勿直接cv。

报错截图:

O 68880 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data JPA repositories in DEFAULT mode. 2025-04-02 09:47:34.433 INFO 68880 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 7 ms. Found 0 JPA repository interfaces. strategy: complex algorithmClassName: org.example.utils.db.MovingCarResultDbShardingAlgorithm strategy: complex algorithmClassName: org.example.utils.table.MovingCarTableShardingAlgorithm strategy: complex algorithmClassName: org.example.utils.table.YcDialogueTableShardingAlgorithm strategy: complex algorithmClassName: org.example.utils.db.ModuloHintShardingAlgorithm strategy: complex algorithmClassName: org.example.utils.table.MovingCarResultTableShardingAlgorithm strategy: complex algorithmClassName: org.example.utils.db.YcDialogueDbShardingAlgorithm strategy: complex algorithmClassName: org.example.utils.db.MovingCarDbShardingAlgorithm 2025-04-02 09:47:34.697 INFO 68880 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'stringToNoneShardingStrategyConfigurationConverter' of type [org.apache.shardingsphere.spring.boot.converter.StringToNoneShardingStrategyConfigurationConverter] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2025-04-02 09:47:34.708 INFO 68880 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'spring.shardingsphere-org.apache.shardingsphere.spring.boot.prop.SpringBootPropertiesConfiguration' of type [org.apache.shardingsphere.spring.boot.prop.SpringBootPropertiesConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) 2025-04-02 09:47:35.042 INFO 68880 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.apache.shardingsphere.spring.boot.ShardingSphereAutoConfiguration' of type [org.apache.shardingsphere.spring.boot.ShardingSphereAutoConfigura
04-03
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值