The bean 'goods.FeignClientSpecification', defined in null, could not be registered. A bean with tha


***************************
APPLICATION FAILED TO START
***************************

Description:

The bean 'goods.FeignClientSpecification', defined in null, could not be registered. A bean with that name has already been defined in null and overriding is disabled.

Action:

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

Disconnected from the target VM, address: '127.0.0.1:50236', transport: 'socket'

Process finished with exit code 1

方式1:

server:
  port: 9001
spring:
  application:
    name: user-auth
  redis:
    host: 192.168.211.132
    port: 6379
    password:
    jedis:
      pool:
        max-active: 8
        max-idle: 8
        min-idle: 0
  datasource:
    driver-class-name: com.mysql.jdbc.Driver
    url: jdbc:mysql://192.168.211.132:3306/changgou_oauth?useUnicode=true&characterEncoding=utf-8&useSSL=false&allowMultiQueries=true&serverTimezone=UTC
    username: root
    password: 123456
  main:        # 设置 为true ,即 允许 同名
    allow-bean-definition-overriding: true

main:        # 设置 为true ,即 允许 同名
    allow-bean-definition-overriding: true

 

扫描二维码关注公众号,回复: 8856293 查看本文章

 build project  或者  clean 一下  重启。


 

发布了221 篇原创文章 · 获赞 8 · 访问量 5万+

猜你喜欢

转载自blog.csdn.net/oDianZi1234567/article/details/103285652