***************************
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
build project 或者 clean 一下 重启。