关于java:APPLICATION-FAILED-TO-START

53次阅读

共计 595 个字符,预计需要花费 2 分钟才能阅读完成。

错误信息


APPLICATION FAILED TO START


Description:

The bean ‘dataSource’, defined in BeanDefinition defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class], could not be registered. A bean with that name has already been defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class] and overriding is disabled.

Action:

Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding=true

解决方案 1:
SpringBoot 和 SpringCloud 的版本不兼容造成。

解决方案 2:
spring.main.allow-bean-definition-overriding=true

解决方案 3:
Maven 谬误

正文完
 0