debug
This commit is contained in:
@ -38,6 +38,7 @@ public class DataSourceConfig {
|
|||||||
sqlSessionFactoryBean.setMapperLocations(new PathMatchingResourcePatternResolver()
|
sqlSessionFactoryBean.setMapperLocations(new PathMatchingResourcePatternResolver()
|
||||||
.getResources("classpath*:com/chinaunicom/mall/ebtp/**/mapper/*Mapper.xml"));
|
.getResources("classpath*:com/chinaunicom/mall/ebtp/**/mapper/*Mapper.xml"));
|
||||||
sqlSessionFactoryBean.setTransactionFactory(new SpringManagedTransactionFactory());
|
sqlSessionFactoryBean.setTransactionFactory(new SpringManagedTransactionFactory());
|
||||||
|
|
||||||
return sqlSessionFactoryBean.getObject();
|
return sqlSessionFactoryBean.getObject();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -26,7 +26,7 @@ spring:
|
|||||||
|
|
||||||
datasource:
|
datasource:
|
||||||
type: com.alibaba.druid.pool.DruidDataSource
|
type: com.alibaba.druid.pool.DruidDataSource
|
||||||
driver-class-name: com.mysql.jdbc.Driver
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
||||||
url: jdbc:mysql://10.242.31.158:3033/ebtp_mall_project?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true
|
url: jdbc:mysql://10.242.31.158:3033/ebtp_mall_project?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true
|
||||||
username: root
|
username: root
|
||||||
password: root
|
password: root
|
||||||
|
Reference in New Issue
Block a user