hank-cp / sbp

Plugin framework for Spring Boot based on pf4j.
Apache License 2.0
205 stars 67 forks source link

Bean with that name has already been defined #36

Closed paulsen-it closed 1 year ago

paulsen-it commented 2 years ago

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?

hank-cp commented 2 years ago

Could you create a reproducible repo for this issue?

paulsen-it commented 2 years ago

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

hank-cp commented 2 years ago

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 commented 1 year ago

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