diff options
author | 2016-11-13 23:45:32 +0700 | |
---|---|---|
committer | 2016-11-13 23:45:32 +0700 | |
commit | 590c650f8ac3478b31fd3fd3382c9b35284844b7 (patch) | |
tree | 950de6ee245ba45aba1b1f147ec475ac921ab291 /server-core/src/main/java/com/juick/configuration/DataConfiguration.java | |
parent | e20ab1d1f26d18211004ee8d1b64eea51d790253 (diff) |
jdbc service (repository) layer is added
Diffstat (limited to 'server-core/src/main/java/com/juick/configuration/DataConfiguration.java')
-rw-r--r-- | server-core/src/main/java/com/juick/configuration/DataConfiguration.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/server-core/src/main/java/com/juick/configuration/DataConfiguration.java b/server-core/src/main/java/com/juick/configuration/DataConfiguration.java index f31dbcdb..88fc00b3 100644 --- a/server-core/src/main/java/com/juick/configuration/DataConfiguration.java +++ b/server-core/src/main/java/com/juick/configuration/DataConfiguration.java @@ -2,6 +2,7 @@ package com.juick.configuration; import org.apache.commons.dbcp2.BasicDataSource; import org.springframework.context.annotation.Bean; +import org.springframework.context.annotation.ComponentScan; import org.springframework.context.annotation.Configuration; import org.springframework.context.annotation.PropertySource; import org.springframework.core.env.Environment; @@ -20,6 +21,7 @@ import javax.sql.DataSource; @Configuration @EnableTransactionManagement @PropertySource(value = {"classpath:juick.conf"}) +@ComponentScan(basePackages = {"com.juick.service"}) public class DataConfiguration implements TransactionManagementConfigurer { @Resource private Environment env; |