| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- # spring配置
- spring:
- datasource:
- druid:
- stat-view-servlet:
- enabled: true
- loginUsername: admin
- loginPassword: 123456
- dynamic:
- druid:
- initial-size: 5
- min-idle: 5
- maxActive: 20
- maxWait: 60000
- timeBetweenEvictionRunsMillis: 60000
- minEvictableIdleTimeMillis: 300000
- validationQuery: SELECT 1 FROM DUAL
- testWhileIdle: true
- testOnBorrow: true
- testOnReturn: true
- poolPreparedStatements: true
- maxPoolPreparedStatementPerConnectionSize: 20
- filters: stat,slf4j
- connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
- datasource:
- # 主库数据源
- master:
- driver-class-name: com.mysql.cj.jdbc.Driver
- url: jdbc:mysql://10.87.23.48:3306/soc?useUnicode=true&characterEncoding=utf8&zeroDateTimeBehavior=convertToNull&useSSL=false&serverTimezone=GMT%2B8&allowMultiQueries=true&rewriteBatchedStatements=true&connectTimeout=30000&autoReconnect=true&failOverReadOnly=false
- username: root
- password: XM_zm2019
- # 从库数据源
- # slave:
- # username:
- # password:
- # url:
- # driver-class-name:
- # mybatis配置
- #mybatis:
- # 搜索指定包别名
- #typeAliasesPackage: com.xunmei.system
- # 配置mapper的扫描,找到所有的mapper.xml映射文件
- #mapperLocations: classpath:mapper/**/*.xml
- mybatis-plus:
- # 不支持多包, 如有需要可在注解配置 或 提升扫包等级
- # 例如 com.**.**.mapper
- mapperPackage: com.xunmei.**.mapper
- # 对应的 XML 文件位置
- mapperLocations: classpath*:mapper/**/*Mapper.xml
- # 实体扫描,多个package用逗号或者分号分隔
- typeAliasesPackage: com.xunmei.**.domain
- # 启动时是否检查 MyBatis XML 文件的存在,默认不检查
- checkConfigLocation: false
- configuration:
- # 自动驼峰命名规则(camel case)映射
- mapUnderscoreToCamelCase: true
- # MyBatis 自动映射策略
- # NONE:不启用 PARTIAL:只对非嵌套 resultMap 自动映射 FULL:对所有 resultMap 自动映射
- autoMappingBehavior: PARTIAL
- # MyBatis 自动映射时未知列或未知属性处理策
- # NONE:不做处理 WARNING:打印相关警告 FAILING:抛出异常和详细信息
- autoMappingUnknownColumnBehavior: NONE
- # 更详细的日志输出 会有性能损耗 org.apache.ibatis.logging.stdout.StdOutImpl
- # 关闭日志记录 (可单纯使用 p6spy 分析) org.apache.ibatis.logging.nologging.NoLoggingImpl
- # 默认日志输出 org.apache.ibatis.logging.slf4j.Slf4jImpl
- #logImpl: org.apache.ibatis.logging.nologging.NoLoggingImpl
- logImpl: org.apache.ibatis.logging.stdout.StdOutImpl
- global-config:
- # 是否打印 Logo banner
- banner: true
- dbConfig:
- # 主键类型
- # AUTO 自增 NONE 空 INPUT 用户输入 ASSIGN_ID 雪花 ASSIGN_UUID 唯一 UUID
- idType: ASSIGN_ID
- # 逻辑已删除值
- logicDeleteValue: 2
- # 逻辑未删除值
- logicNotDeleteValue: 0
- # 字段验证策略之 insert,在 insert 的时候的字段验证策略
- # IGNORED 忽略 NOT_NULL 非NULL NOT_EMPTY 非空 DEFAULT 默认 NEVER 不加入 SQL
- insertStrategy: NOT_NULL
- # 字段验证策略之 update,在 update 的时候的字段验证策略
- updateStrategy: NOT_NULL
- # 字段验证策略之 select,在 select 的时候的字段验证策略既 wrapper 根据内部 entity 生成的 where 条件
- where-strategy: NOT_NULL
- # swagger配置
- swagger:
- title: 系统模块接口文档
- license: Powered By soc
- licenseUrl:
|