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

报错信息:

Action:

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

只需要再配置文件中加入如下即可

  main:
    allow-bean-definition-overriding: true

这句话的意思是当遇到同名时是否覆盖。

你可能感兴趣的:(Spring,boot)