카테고리 없음

A bean with that name has already been defined

이영애님 2019. 12. 1. 03:36

#

oauth2ClientFilterRegistration could not be registered

A bean with that name has already been defined in com.example.SocialApplication and overriding is disabled

 

#

Spring Boot 2 now disables that sort of bean overriding by default.

You can re-enable it by setting the following property in your application.yml:

 

https://stackoverflow.com/questions/51367566/trouble-when-changing-spring-boot-version-from-2-0-3-release-to-2-1-0-build-snap

 

 

#

[application.yml] 

spring.main.allow-bean-definition-overriding=true