forked from nurkiewicz/spring-data-jdbc-repository
-
-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Inject dependencies using Autowire instead of manually from BeanFactory
Fixes nurkiewicz#25. And also fixes nurkiewicz#20; if you want to inject a non-primary bean, then you can do the following: public class FooRepository extends JdbcRepository { @Autowired @qualifier("secondaryDataSource") public void setDataSource(DataSource dataSource) { super.setDataSource(dataSource); } }
- Loading branch information
Showing
1 changed file
with
18 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters