Advertisement
Guest User

Untitled

a guest
Feb 10th, 2016
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.44 KB | None | 0 0
  1. @Bean
  2. public DataSource dataSource() {
  3. // load BasicDbcpPooledDataSourceCreator before TomcatJdbcPooledDataSourceCreator
  4. List<String> dataSourceNames = Arrays.asList("BasicDbcpPooledDataSourceCreator", "TomcatJdbcPooledDataSourceCreator", "HikariCpPooledDataSourceCreator", "TomcatDbcpPooledDataSourceCreator");
  5. DataSourceConfig dbConfig = new DataSourceConfig(dataSourceNames);
  6. return connectionFactory().dataSource(dbConfig);
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement