hdy
7 天以前 b9df2fc5c64a1d989991655a9e42e4d1f2ec4075
billion-admin/src/main/resources/application.yml
@@ -16,7 +16,7 @@
# 开发环境配置
server:
  # 服务器的HTTP端口,默认为8080
  port: 8080
  port: 8081
  servlet:
    # 应用的访问路径
    context-path: /
@@ -106,20 +106,54 @@
#  # 加载全局的配置文件
#  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: del_flag
      # 逻辑已删除值
      logicDeleteValue: "1"
      # 逻辑未删除值
      logicNotDeleteValue: "0"
      insertStrategy: NOT_NULL
      updateStrategy: NOT_NULL
# PageHelper分页插件
pagehelper:
  helperDialect: mysql
  #  helperDialect: mysql
  supportMethodsArguments: true
  params: count=countSql
  autoRuntimeDialect: true
# Swagger配置
swagger:
@@ -136,3 +170,11 @@
  excludes: /system/notice
  # 匹配链接
  urlPatterns: /system/*,/monitor/*,/tool/*
kangaroohy:
  milo:
    primary: default
    config:
      default:
        endpoint: opc.tcp://127.0.0.1:49320
        security-policy: none