java - @Autowired - No qualifying bean of type found for dependency - Stack Overflow
The thing is that both the application context and the web application context are registered in the WebApplicationContext during server startup. When you run the test you must explicitly tell which contexts to load.
Read full article from java - @Autowired - No qualifying bean of type found for dependency - Stack Overflow
No comments:
Post a Comment