You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 17, 2019. It is now read-only.
Fixesnurkiewicz#25.
And also fixesnurkiewicz#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);
}
}
jirutka
added a commit
to jirutka/spring-data-jdbc-repository
that referenced
this issue
Feb 13, 2016
Fixesnurkiewicz#25.
And also fixesnurkiewicz#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);
}
}
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The BeanFactory in JdbcRepository always grabs the default DataSource. This prevents an application from using more than one datasource.
Also
Clears the jdbc template created by a child class, i.e.
Child Class
is overwritten immediately.
The text was updated successfully, but these errors were encountered: