diff options
author | Vitaly Takmazov | 2017-11-13 15:23:06 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2017-11-13 15:23:06 +0300 |
commit | fc77902b14c16e7c911a0f2fe6a73e69b252f699 (patch) | |
tree | 4e86783db9b588af9f98a8a3e56a48be7a6d53a5 /juick-server-jdbc/src/main/java/com/juick/configuration | |
parent | 4f32ea8c6889be56861a290e633a89c5b6740e3a (diff) |
notifications: moved top service from cron
Diffstat (limited to 'juick-server-jdbc/src/main/java/com/juick/configuration')
-rw-r--r-- | juick-server-jdbc/src/main/java/com/juick/configuration/DataConfiguration.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/juick-server-jdbc/src/main/java/com/juick/configuration/DataConfiguration.java b/juick-server-jdbc/src/main/java/com/juick/configuration/DataConfiguration.java index 27e60e9b..c728b527 100644 --- a/juick-server-jdbc/src/main/java/com/juick/configuration/DataConfiguration.java +++ b/juick-server-jdbc/src/main/java/com/juick/configuration/DataConfiguration.java @@ -28,6 +28,7 @@ import org.springframework.transaction.PlatformTransactionManager; import org.springframework.transaction.annotation.EnableTransactionManagement; import org.springframework.transaction.annotation.TransactionManagementConfigurer; +import javax.sql.DataSource; import java.util.Collections; import java.util.List; @@ -51,7 +52,7 @@ public class DataConfiguration implements TransactionManagementConfigurer { // NOTE: The close() method will be called automatically with default @Bean settings // But Datasource interface has no close() method @Bean - public BasicDataSource dataSource() { + public DataSource dataSource() { BasicDataSource dataSource = new BasicDataSource(); dataSource.setDriverClassName(datasourceDriver); |