Cezar Apulchro
Ranch Hand
Posts: 467
posted 8 months ago
-
-
Number of slices to send:
Optional 'thank-you' note:
-
-
Hi, Hi, When I load the Spring Boot Application of my project I'm receiving this error.
My bean cclass:
My controller class:
My repository class:
Error log:
I can't see where already this bean defined.
Thanks in advanced.
Stephan van Hulst
Saloon Keeper
Posts: 14070
posted 8 months ago
-
-
Number of slices to send:
Optional 'thank-you' note:
-
-
It looks like you're using
@EnableJdbcRepositoriesand
@EnableJpaRepositorieson overlapping base packages.
Cezar Apulchro
Ranch Hand
Posts: 467
posted 8 months ago
-
-
Number of slices to send:
Optional 'thank-you' note:
-
-
Very good, problem is solved.
Cezar Apulchro
Ranch Hand
Posts: 467
posted 8 months ago
-
-
Number of slices to send:
Optional 'thank-you' note:
-
-
Very good, problem is solved.
Tim Holloway
Saloon Keeper
Posts: 25765
posted 8 months ago
-
-
Number of slices to send:
Optional 'thank-you' note:
-
-
Please STOP asking the same question over and over again!
Sorry, Stephan, I think Spring probably knows better than to doubly-define beans within its own factory. But the Bean Factory for JSF and the Bean Factory are two separate factories, both tied by the JSF/Spring bridge, so they're less likely to be understanding.
For more on that, check the duplicate post here: //coderanch.com/t/747149/java/bean-defined-myRepository#3470920
Sometimes the only way things ever got fixed is because people became uncomfortable.