Posts by RafaelE • 1 point
2 posts
-
0
votes2
answers120
viewsA: Springboot - @Autowired null in configuration file
At one point I instantiated the Test class with new Teste(). That’s where the problem was. I injected a class dependency injection Teste in the service class where I will need to use it and…
-
0
votes2
answers120
viewsQ: Springboot - @Autowired null in configuration file
I’m starting a project with springboot and need to access some properties of application.properties because of the profiles. But when I inject the configuration class, it always comes null, I’ve…