################### mybatis-plus配置 ################### mybatis-plus: mapper-locations: classpath*:mapping/**/*.xml type-aliases-package: com.gxzc.zen.api.sys.mapper global-config: id-type: 0 #0:数据库ID自增 1:用户输入id 2:全局唯一id(IdWorker) 3:全局唯一ID(uuid) db-column-underline: true refresh-mapper: true logic-delete-value: 0 logic-not-delete-value: 1 sql-injector: com.gxzc.zen.orm.sql.ZenSqlInjector # 自定义injector meta-object-handler: com.gxzc.zen.orm.CustomMetaObjectHandler configuration: map-underscore-to-camel-case: true cache-enabled: true #配置的缓存的全局开关 lazyLoadingEnabled: true #延时加载的开关 multipleResultSetsEnabled: true #延时加载一个属性时会加载该对象全部属性,否则按需加载属性 interceptors: com.baomidou.mybatisplus.plugins.OptimisticLockerInterceptor, com.baomidou.mybatisplus.plugins.PaginationInterceptor, com.gxzc.zen.orm.data.authority.interceptor.ZenDataAuthorityInterceptor # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl #打印sql语句,调试用 --- spring: profiles: dev datasource: type: com.alibaba.druid.pool.DruidDataSource druid: stat-view-servlet: enabled: true login-username: root login-password: root reset-enable: false test-on-borrow: true test-on-return: false test-while-idle: true driver-class-name: com.mysql.jdbc.Driver username: archives password: archives url: jdbc:mysql://192.168.1.10:3306/archives_sys?autoReconnect=true&useUnicode=true&characterEncoding=utf-8&useSSL=false&zeroDateTimeBehavior=convertToNull # &useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC --- spring: profiles: prod datasource: type: com.alibaba.druid.pool.DruidDataSource druid: stat-view-servlet: enabled: true login-username: root login-password: root reset-enable: false test-on-borrow: true test-on-return: false test-while-idle: true driver-class-name: com.mysql.jdbc.Driver username: archives password: archives url: jdbc:mysql://rm-wz9on0bqphwygm14j.mysql.rds.aliyuncs.com:3306/archives_sys?autoReconnect=true&useUnicode=true&characterEncoding=utf-8&useSSL=false&zeroDateTimeBehavior=convertToNull # &useJDBCCompliantTimezoneShift=true&useLegacyDatetimeCode=false&serverTimezone=UTC