diff options
author | 2018-02-17 23:53:48 +0300 | |
---|---|---|
committer | 2018-02-22 13:15:59 +0300 | |
commit | 8799068b593b9dd40b569a520c32b7e7dd541783 (patch) | |
tree | 4688be0d41490453370135c5e009aac511f04cd9 /juick-server-jdbc/src/main/java/com/juick/service/BaseJdbcService.java | |
parent | 2b267c04f4c77c6fae5c591e45d987b3f4b3bab3 (diff) |
run tests on h2 database
Diffstat (limited to 'juick-server-jdbc/src/main/java/com/juick/service/BaseJdbcService.java')
-rw-r--r-- | juick-server-jdbc/src/main/java/com/juick/service/BaseJdbcService.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/juick-server-jdbc/src/main/java/com/juick/service/BaseJdbcService.java b/juick-server-jdbc/src/main/java/com/juick/service/BaseJdbcService.java index 67ddf713..d0bf0195 100644 --- a/juick-server-jdbc/src/main/java/com/juick/service/BaseJdbcService.java +++ b/juick-server-jdbc/src/main/java/com/juick/service/BaseJdbcService.java @@ -17,6 +17,7 @@ package com.juick.service; +import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.jdbc.core.namedparam.NamedParameterJdbcDaoSupport; import javax.annotation.PostConstruct; @@ -28,9 +29,9 @@ import javax.sql.DataSource; */ public class BaseJdbcService extends NamedParameterJdbcDaoSupport { @Inject - DataSource dataSource; + JdbcTemplate jdbcTemplate; @PostConstruct public void init() { - setDataSource(dataSource); + setJdbcTemplate(jdbcTemplate); } } |