1
wujian
2024-11-16 d146c084c0b5bf360cd55d63e79916c55e703a3e
billion-admin/src/main/resources/application.yml
@@ -106,14 +106,47 @@
#  # 加载全局的配置文件
#  configLocation: classpath:mybatis/mybatis-config.xml
# MyBatis Plus配置
## MyBatis Plus配置
#mybatis-plus:
#  # 搜索指定包别名
#  typeAliasesPackage: com.billion.**.domain
#  # 配置mapper的扫描,找到所有的mapper.xml映射文件
#  mapperLocations: classpath*:mapper/**/*Mapper.xml
#  # 加载全局的配置文件
#  configLocation: classpath:mybatis/mybatis-config.xml
mybatis-plus:
  # 搜索指定包别名
  typeAliasesPackage: com.billion.**.domain
  # 配置mapper的扫描,找到所有的mapper.xml映射文件
  # 对应的 XML 文件位置
  mapperLocations: classpath*:mapper/**/*Mapper.xml
  # 加载全局的配置文件
  configLocation: classpath:mybatis/mybatis-config.xml
  typeAliasesPackage: com.billion.**.domain
  checkConfigLocation: false
  executorType: SIMPLE
  configuration:
    mapUnderscoreToCamelCase: true
    defaultEnumTypeHandler: org.apache.ibatis.type.EnumTypeHandler
    aggressiveLazyLoading: true
    autoMappingBehavior: PARTIAL
    autoMappingUnknownColumnBehavior: NONE
    localCacheScope: SESSION
    # 开启Mybatis二级缓存,默认为 true
    cacheEnabled: true
  global-config:
    banner: true
    enableSqlRunner: false
    dbConfig:
      idType: AUTO
      tablePrefix: null
      columnFormat: null
      tableUnderline: true
      capitalMode: false
      logicDeleteField: deleted
      # 逻辑已删除值
      logicDeleteValue: 1
      # 逻辑未删除值
      logicNotDeleteValue: 0
      insertStrategy: NOT_NULL
      updateStrategy: NOT_NULL
# PageHelper分页插件
pagehelper: