java - Spring dependency injection in constructor with annotations - Stack Overflow
@Autowired
is by-type (in this case); use @Qualifier
to autowire by-name, following the example from spring docs:
Read full article from java - Spring dependency injection in constructor with annotations - Stack Overflow
No comments:
Post a Comment