|
|
@ -46,19 +46,19 @@ import java.util.HashSet;
|
|
|
|
import java.util.Map;
|
|
|
|
import java.util.Map;
|
|
|
|
|
|
|
|
|
|
|
|
@Slf4j
|
|
|
|
@Slf4j
|
|
|
|
@Configuration
|
|
|
|
//@Configuration
|
|
|
|
@EnableJpaAuditing
|
|
|
|
//@EnableJpaAuditing
|
|
|
|
@EnableTransactionManagement
|
|
|
|
//@EnableTransactionManagement
|
|
|
|
@EnableJpaRepositories(
|
|
|
|
//@EnableJpaRepositories(
|
|
|
|
transactionManagerRef = "jpaTransactionManager",
|
|
|
|
// transactionManagerRef = "jpaTransactionManager",
|
|
|
|
basePackages = {"com.xit.biz.**.repository", "com.xit.core.**.repository"}
|
|
|
|
// basePackages = {"com.xit.biz.**.repository", "com.xit.core.**.repository"}
|
|
|
|
)
|
|
|
|
//)
|
|
|
|
// Mybatis
|
|
|
|
//// Mybatis
|
|
|
|
@MapperScan(
|
|
|
|
//@MapperScan(
|
|
|
|
nameGenerator = CustomBeanNameGenerator.class,
|
|
|
|
// nameGenerator = CustomBeanNameGenerator.class,
|
|
|
|
basePackages = DataSourceConfig.PACKAGE,
|
|
|
|
// basePackages = DataSourceConfig.PACKAGE,
|
|
|
|
sqlSessionFactoryRef = "sqlSessionFactory"
|
|
|
|
// sqlSessionFactoryRef = "sqlSessionFactory"
|
|
|
|
)
|
|
|
|
//)
|
|
|
|
public class DataSourceConfig {
|
|
|
|
public class DataSourceConfig {
|
|
|
|
@Value("${spring.jpa.properties.hibernate.hbm2ddl.auto}")
|
|
|
|
@Value("${spring.jpa.properties.hibernate.hbm2ddl.auto}")
|
|
|
|
String hbm2ddlAuto;
|
|
|
|
String hbm2ddlAuto;
|
|
|
|