|
@@ -5,7 +5,6 @@ import lombok.extern.slf4j.Slf4j;
|
|
|
import org.apache.ibatis.session.SqlSessionFactory;
|
|
|
import org.mybatis.spring.SqlSessionFactoryBean;
|
|
|
import org.mybatis.spring.SqlSessionTemplate;
|
|
|
-import org.mybatis.spring.annotation.MapperScan;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Qualifier;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
@@ -13,9 +12,7 @@ import org.springframework.boot.context.properties.ConfigurationProperties;
|
|
|
import org.springframework.boot.jdbc.DataSourceBuilder;
|
|
|
import org.springframework.context.ApplicationContext;
|
|
|
import org.springframework.context.annotation.Bean;
|
|
|
-import org.springframework.context.annotation.Configuration;
|
|
|
import org.springframework.jdbc.datasource.DataSourceTransactionManager;
|
|
|
-import org.springframework.transaction.annotation.EnableTransactionManagement;
|
|
|
|
|
|
import javax.annotation.PostConstruct;
|
|
|
import javax.sql.DataSource;
|
|
@@ -23,11 +20,11 @@ import java.io.IOException;
|
|
|
|
|
|
@Slf4j
|
|
|
@ToString
|
|
|
-@Configuration
|
|
|
-@MapperScan(
|
|
|
- basePackages="com.its.traf.dao.mapper.utis",
|
|
|
- sqlSessionFactoryRef = "utisSqlSessionFactory")
|
|
|
-@EnableTransactionManagement
|
|
|
+//@Configuration
|
|
|
+//@MapperScan(
|
|
|
+// basePackages="com.its.traf.dao.mapper.utis",
|
|
|
+// sqlSessionFactoryRef = "utisSqlSessionFactory")
|
|
|
+//@EnableTransactionManagement
|
|
|
public class DatabaseUtisConfig {
|
|
|
|
|
|
@Value("${spring.utis-datasource.hikari.mapper-locations:classpath:mybatis/mapper/utis/**/*.xml}")
|