Commit be0e94cb by fsn

删掉没用配置

parent 21abc766
......@@ -17,7 +17,7 @@ import project.config.datasource.DataSourceConfigTemplate;
*/
@Configuration
@MapperScan(basePackages = {"com.stylefeng.guns.modular.*.dao","com.stylefeng.guns.persistence.dao"})
@ConfigurationProperties(prefix = "jdbc")
@ConfigurationProperties(prefix = "spring.datasource")
public class MybatisPlusConfig {
private String url;
......@@ -31,7 +31,6 @@ public class MybatisPlusConfig {
public PaginationInterceptor paginationInterceptor() {
PaginationInterceptor paginationInterceptor = new PaginationInterceptor();
paginationInterceptor.setDialectType(DBType.MYSQL.getDb());
//paginationInterceptor.setOptimizeType(Optimize.JSQLPARSER.getOptimize());
return paginationInterceptor;
}
......
......@@ -19,7 +19,7 @@ mybatis-plus:
mapper-locations: classpath*:com/stylefeng/guns/**/mapping/*.xml
typeAliasesPackage: com.stylefeng.guns.persistence.model
global-config:
id-type: 1
id-type: 1 #1:数据库ID自增 2:用户输入id 3:全局唯一id(IdWorker) 4:全局唯一ID(uuid)
db-column-underline: false
refresh-mapper: true
configuration:
......@@ -29,10 +29,3 @@ mybatis-plus:
#logging
logging:
level: debug
#jdbc
jdbc:
url: jdbc:mysql://127.0.0.1:3306/guns?autoReconnect=true&useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull
username: root
password: root
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment