soc-system-dev.yml 3.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091
  1. # spring配置
  2. spring:
  3. datasource:
  4. druid:
  5. stat-view-servlet:
  6. enabled: true
  7. loginUsername: admin
  8. loginPassword: 123456
  9. dynamic:
  10. druid:
  11. initial-size: 5
  12. min-idle: 5
  13. maxActive: 20
  14. maxWait: 60000
  15. timeBetweenEvictionRunsMillis: 60000
  16. minEvictableIdleTimeMillis: 300000
  17. validationQuery: SELECT 1 FROM DUAL
  18. testWhileIdle: true
  19. testOnBorrow: true
  20. testOnReturn: true
  21. poolPreparedStatements: true
  22. maxPoolPreparedStatementPerConnectionSize: 20
  23. filters: stat,slf4j
  24. connectionProperties: druid.stat.mergeSql\=true;druid.stat.slowSqlMillis\=5000
  25. datasource:
  26. # 主库数据源
  27. master:
  28. driver-class-name: com.mysql.cj.jdbc.Driver
  29. 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
  30. username: root
  31. password: XM_zm2019
  32. # 从库数据源
  33. # slave:
  34. # username:
  35. # password:
  36. # url:
  37. # driver-class-name:
  38. # mybatis配置
  39. #mybatis:
  40. # 搜索指定包别名
  41. #typeAliasesPackage: com.xunmei.system
  42. # 配置mapper的扫描,找到所有的mapper.xml映射文件
  43. #mapperLocations: classpath:mapper/**/*.xml
  44. mybatis-plus:
  45. # 不支持多包, 如有需要可在注解配置 或 提升扫包等级
  46. # 例如 com.**.**.mapper
  47. mapperPackage: com.xunmei.**.mapper
  48. # 对应的 XML 文件位置
  49. mapperLocations: classpath*:mapper/**/*Mapper.xml
  50. # 实体扫描,多个package用逗号或者分号分隔
  51. typeAliasesPackage: com.xunmei.**.domain
  52. # 启动时是否检查 MyBatis XML 文件的存在,默认不检查
  53. checkConfigLocation: false
  54. configuration:
  55. # 自动驼峰命名规则(camel case)映射
  56. mapUnderscoreToCamelCase: true
  57. # MyBatis 自动映射策略
  58. # NONE:不启用 PARTIAL:只对非嵌套 resultMap 自动映射 FULL:对所有 resultMap 自动映射
  59. autoMappingBehavior: PARTIAL
  60. # MyBatis 自动映射时未知列或未知属性处理策
  61. # NONE:不做处理 WARNING:打印相关警告 FAILING:抛出异常和详细信息
  62. autoMappingUnknownColumnBehavior: NONE
  63. # 更详细的日志输出 会有性能损耗 org.apache.ibatis.logging.stdout.StdOutImpl
  64. # 关闭日志记录 (可单纯使用 p6spy 分析) org.apache.ibatis.logging.nologging.NoLoggingImpl
  65. # 默认日志输出 org.apache.ibatis.logging.slf4j.Slf4jImpl
  66. #logImpl: org.apache.ibatis.logging.nologging.NoLoggingImpl
  67. logImpl: org.apache.ibatis.logging.stdout.StdOutImpl
  68. global-config:
  69. # 是否打印 Logo banner
  70. banner: true
  71. dbConfig:
  72. # 主键类型
  73. # AUTO 自增 NONE 空 INPUT 用户输入 ASSIGN_ID 雪花 ASSIGN_UUID 唯一 UUID
  74. idType: ASSIGN_ID
  75. # 逻辑已删除值
  76. logicDeleteValue: 2
  77. # 逻辑未删除值
  78. logicNotDeleteValue: 0
  79. # 字段验证策略之 insert,在 insert 的时候的字段验证策略
  80. # IGNORED 忽略 NOT_NULL 非NULL NOT_EMPTY 非空 DEFAULT 默认 NEVER 不加入 SQL
  81. insertStrategy: NOT_NULL
  82. # 字段验证策略之 update,在 update 的时候的字段验证策略
  83. updateStrategy: NOT_NULL
  84. # 字段验证策略之 select,在 select 的时候的字段验证策略既 wrapper 根据内部 entity 生成的 where 条件
  85. where-strategy: NOT_NULL
  86. # swagger配置
  87. swagger:
  88. title: 系统模块接口文档
  89. license: Powered By soc
  90. licenseUrl: