use of org.springframework.jdbc.datasource.DriverManagerDataSource in project av-service by dvoraka.
the class DbConfig method dataSource.
@Bean
public DataSource dataSource() {
DriverManagerDataSource dataSource = new DriverManagerDataSource();
dataSource.setDriverClassName(env.getProperty("avservice.db.driver"));
dataSource.setUrl(env.getProperty("avservice.db.url"));
dataSource.setUsername(env.getProperty("avservice.db.user"));
dataSource.setPassword(env.getProperty("avservice.db.pass"));
return dataSource;
}
Aggregations