Dev.to · Simon Martinelli
⚡ AI Lesson
2y ago
How do you get a Spring Bean without Dependency Injection?
Sometimes, you want to use a Spring Bean in a class that is not a Spring Bean, but then dependency injection doesn’t work. This article shows a way to get aroun