The bean ‘api‘, defined in class path resource [com/szshuwei/fuxiplus/common/swagger/SwaggerAutoConf

The bean ‘api‘, defined in class path resource [com/szshuwei/fuxiplus/common/swagger/SwaggerAutoConf_第1张图片
加一个这个注解 spring.main.allow-bean-definition-overriding: true
因为扫描不同的包路径导致的~
然后加上它之后可能还会报其他错误,根据提示来
The bean ‘api‘, defined in class path resource [com/szshuwei/fuxiplus/common/swagger/SwaggerAutoConf_第2张图片
The bean ‘api‘, defined in class path resource [com/szshuwei/fuxiplus/common/swagger/SwaggerAutoConf_第3张图片

你可能感兴趣的:(SpringCloud-A,java)