user-service-dev.yml 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. server:
  2. port: 8762
  3. #spring:
  4. # datasource:
  5. # driver-class-name: com.mysql.jdbc.Driver
  6. # url: jdbc:mysql://localhost:3306/sys-user?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8
  7. # username: root
  8. # password: root
  9. # jpa:
  10. # hibernate:
  11. # ddl-auto: update
  12. # show-sql: true
  13. # 驱动配置信息
  14. spring:
  15. datasource:
  16. druid:
  17. driverClassName: com.mysql.jdbc.Driver
  18. driver-class-name: com.mysql.jdbc.Driver
  19. platform: mysql
  20. url: jdbc:mysql://192.168.2.236:3306/sys-user?useUnicode=true&characterEncoding=utf8&characterSetResults=utf8
  21. username: root
  22. password: lantone
  23. # 连接池的配置信息
  24. # 初始化大小,最小,最大
  25. initialSize: 5
  26. minIdle: 5
  27. maxActive: 20
  28. # 配置获取连接等待超时的时间
  29. maxWait: 60000
  30. # 配置间隔多久才进行一次检测,检测需要关闭的空闲连接,单位是毫秒
  31. timeBetweenEvictionRunsMillis: 60000
  32. # 配置一个连接在池中最小生存的时间,单位是毫秒
  33. minEvictableIdleTimeMillis: 300000
  34. validationQuery: SELECT 1 FROM DUAL
  35. testWhileIdle: true
  36. testOnBorrow: false
  37. testOnReturn: false
  38. # 打开PSCache,并且指定每个连接上PSCache的大小
  39. poolPreparedStatements: true
  40. maxPoolPreparedStatementPerConnectionSize: 20
  41. # 配置监控统计拦截的filters,去掉后监控界面sql无法统计,'wall'用于防火墙
  42. filters.commons-log.connection-logger-name: stat,wall,log4j
  43. filter.stat.log-slow-sql: true
  44. filter.stat.slow-sql-millis: 2000
  45. #监控配置
  46. web-stat-filter:
  47. enabled: true
  48. url-pattern: /*
  49. exclusions: '*.js,*.gif,*.jpg,*.bmp,*.png,*.css,*.ico,/druid/*'
  50. # StatViewServlet配置,说明请参考Druid Wiki,配置_StatViewServlet配置
  51. stat-view-servlet:
  52. enabled: true
  53. url-pattern: /druid/*
  54. reset-enable: false
  55. login-username: root
  56. login-password: root
  57. cloud:
  58. stream:
  59. bindings:
  60. outputLog:
  61. destination: myLog
  62. # contentType: text/plain # 实体 json string 在传递的类型装换 查看 http://docs.spring
  63. #mq
  64. rabbitmq:
  65. host: 192.168.2.236
  66. port: 5672
  67. username: lantone
  68. password: lantone
  69. publisher-confirms: true
  70. virtual-host: /
  71. #mybatis
  72. mybatis-plus:
  73. mapper-locations: classpath:/mapper/*Mapper.xml
  74. #实体扫描,多个package用逗号或者分号分隔
  75. typeAliasesPackage: com.diagbot.entity
  76. global-config:
  77. #刷新mapper 调试神器
  78. db-config:
  79. #主键类型 0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID";
  80. id-type: id_worker
  81. #字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断"
  82. field-strategy: not_empty
  83. #驼峰下划线转换
  84. column-underline: true
  85. #数据库大写下划线转换
  86. #capital-mode: true
  87. #刷新mapper 调试神器
  88. refresh-mapper: true
  89. #逻辑删除配置
  90. logic-delete-value: 0
  91. logic-not-delete-value: 1
  92. #自定义填充策略接口实现
  93. #meta-object-handler: com.baomidou.springboot.xxx
  94. #自定义SQL注入器
  95. #sql-injector: com.baomidou.springboot.xxx
  96. configuration:
  97. map-underscore-to-camel-case: true
  98. cache-enabled: false
  99. foo: foo version 1