Open OrangeDog opened 2 years ago
This could also affect users of earlier Spring Boot versions or of plain Spring Framework if they've set AbstractAutowireCapableBeanFactory.setAllowCircularReferences(boolean)
to false
as Boot does by default as of 2.6.
Workaround for Spring Boot:
final SpringApplicationBuilder builder = new SpringApplicationBuilder(applicationClass)
.allowCircularReferences(true)
...
There's a dependency cycle between
SAMLDiscovery.setSamlEntryPoint
andSAMLEntryPoint.setSamlDiscovery
. This generates an error on startup as of Spring Boot 2.6.Workaround is to set
spring.main.allow-circular-references=true
.