sbp icon indicating copy to clipboard operation
sbp copied to clipboard

Bean with that name has already been defined

Open paulsen-it opened this issue 2 years ago • 3 comments

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?

paulsen-it avatar Aug 19 '22 10:08 paulsen-it

Could you create a reproducible repo for this issue?

hank-cp avatar Aug 22 '22 06:08 hank-cp

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

paulsen-it avatar Aug 22 '22 11:08 paulsen-it

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.

hank-cp avatar Sep 01 '22 03:09 hank-cp

Spring Boot 2.6.x has been supported from release#14

hank-cp avatar Jan 25 '23 16:01 hank-cp