uaa-service-dev.yml 2.9 KB

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