When a WebClient is located in a separate module, SpringBoot cannot find the bean dependency. Moving the client into the same module allows everything to work.
Looks like I cannot attach the very small sample project
Here it is shared on my OneDrive. I can provide it in other ways if needed.
https://1drv.ms/u/s!AmzGF2MJK5rSdGHqazoLhA00YqE?e=mSjj93
Unmodified, the project should reproduce the missing bean error. Open the AnalysisController and switch to the WebClientStockClientLocal property and associated constructor to eliminate the missing bean problem.
The project is using Java21, JavaFX21, groovy, and gradle. The project also uses DI for the ViewManager and ViewModel just fine. I am using the latest Intellij for development.
The sample application is based on a tutorial but is 4 years old so maybe something has changed.
(
https://www.youtube.com/watch?v=coM6wWKau5E&list=PLPZy-hmwOdEVlrB4r1XF5GDQnaCQpiaa9&index=1)
Hopefully, it is a simple problem, but I have tried many things without success, so any feedback would be great.
The application communicates with a back-end service. For
testing, this is the only code used in the back-end controller API.
Thank you for any help