sbp
sbp copied to clipboard
Bean with that name has already been defined
Hello,
I get the follow error message:
The bean 'resourceHandlerRegistrationCustomizer', defined in class path resource [org/laxture/sbp/spring/boot/SbpMvcPatchAutoConfiguration.class], could not be registered. A bean with that name has already been defined in class path resource [org/springframework/boot/autoconfigure/web/servlet/WebMvcAutoConfiguration$ResourceChainCustomizerConfiguration.class] and overriding is disabled.
Action:
Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding=true
The Action is not a Solution. Than I get another error message.
I use Spring Boot Version 2.6.8 and sbp-spring-boot-starter Version 0.1.13
Can you help me?
Could you create a reproducible repo for this issue?
Here is a "empty" Project. The error message comes on compile with
mvn clean package spring-boot:repackage spring-boot:run
https://github.com/paulsen-it/SBP-Error
Please see the issue #34, sbp does not support Spring Boot 2.6.8 at the moment.
You could checkout branch sprint-boot-2.6
, make a local release to your local repository as a workaround solution.
Spring Boot 2.6.x has been supported from release#14