diff options
author | 2018-03-28 09:04:48 +0300 | |
---|---|---|
committer | 2018-03-28 09:04:48 +0300 | |
commit | 3513f3316da8da6a76e572fa6c21b3e1a70a140b (patch) | |
tree | 6be587caa37848cd11ecee0c10a4653c81b9decd /juick-server-jdbc/src/main/java/com/juick/configuration/DataConfiguration.java | |
parent | 13237626f3956d93a91a94bee6fee6aa86134a06 (diff) |
server: trying to do clean shutdown of DataSource
Diffstat (limited to 'juick-server-jdbc/src/main/java/com/juick/configuration/DataConfiguration.java')
-rw-r--r-- | juick-server-jdbc/src/main/java/com/juick/configuration/DataConfiguration.java | 2 |
1 files changed, 1 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 78c6e1d6..9f59f965 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 @@ -53,7 +53,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 + @Bean(destroyMethod = "") public DataSource dataSource() { BasicDataSource dataSource = new BasicDataSource(); |