Hi,
First, a basic explanation about my application:
It's a SpringBoot application which host a discord bot (with the JDA Api). To do it, I have a singleton CommandLineRunner which inject some service and repositories.
At the same time, my application host a web server (a REST Api) so the bot can be customised and interacted by a website I build in parallel.
The problem is: all the services & repositories the website need use the @RequestScope annotation. But the CommandLineRunner is a singleton. How can my singleton inject the RequestScoped beans so ?
(sry for approximate english)