admin管理员组文章数量:1130349
配置RedisTokenStore后,启动程序时出现了:
Description:
The bean 'redisTokenStore', defined in class path resource [com/auth/redis/RedisTokenStoreConfig.class], could not be registered. A bean with that name has already been defined in class path resource [com/auth/config/AuthorizationServerConfig.class] and overriding is disabled.
Action:
Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding=true
原因是因为自定义的bean重名了,在yml中配置:
spring:
main:
allow-bean-definition-overriding: true
配置RedisTokenStore后,启动程序时出现了:
Description:
The bean 'redisTokenStore', defined in class path resource [com/auth/redis/RedisTokenStoreConfig.class], could not be registered. A bean with that name has already been defined in class path resource [com/auth/config/AuthorizationServerConfig.class] and overriding is disabled.
Action:
Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding=true
原因是因为自定义的bean重名了,在yml中配置:
spring:
main:
allow-bean-definition-overriding: true
本文标签: 异常beansenablingoverridingrenaming
版权声明:本文标题:记一次异常 Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-de 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/jiaocheng/1738334404a1562418.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论