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