MarcGiffing / wicket-spring-boot

Spring Boot starter for Apache Wicket
151 stars 61 forks source link

Spring boot 2.6.1: circular reference #183

Closed saraminto closed 2 years ago

saraminto commented 2 years ago

Hello,

I'm trying to run wicket spring boot project with spring boot 2.6.1, but I get


APPLICATION FAILED TO START


Description: The dependencies of some of the beans in the application context form a cycle: wicketextensionApplicationSettingsConfig (field private com.giffing.wicket.spring.boot.starter.app.classscanner.candidates.WicketClassCandidatesHolder com.giffing.wicket.spring.boot.starter.configuration.extensions.core.settings.application.ApplicationSettingsConfig.holder) ┌─────┐ | com.giffing.wicket.spring.boot.starter.app.classscanner.ClassCandidateScanner └─────┘ Action: Relying upon circular references is discouraged and they are prohibited by default. Update your application to remove the dependency cycle between beans. As a last resort, it may be possible to break the cycle automatically by setting spring.main.allow-circular-references to true.

Is it possible to fix this inconvenience?

geramaya commented 2 years ago

wow, this was fast! great job! :)

Am 12.12.2021 um 22:05 schrieb MarcGiffing:

Closed #183 https://github.com/MarcGiffing/wicket-spring-boot/issues/183.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/MarcGiffing/wicket-spring-boot/issues/183#event-5753292988, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAEPUKC2YWZ6NEIL4I6MCG3UQUFABANCNFSM5J4SSBSA. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

reckart commented 2 years ago

Any idea why 3.1.0 is not yet on Maven Central?

reckart commented 2 years ago

Never mind, found the reason: https://github.com/MarcGiffing/wicket-spring-boot/issues/184

MarcGiffing commented 2 years ago

Please use 3.1.5. I hope it is available soon in Maven Central.