aboutsummaryrefslogtreecommitdiff
path: root/juick-server-jdbc/src/main/java/com/juick/service/BaseJdbcService.java
diff options
context:
space:
mode:
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.java5
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);
}
}