uaa-service-dev.yml 2.9 KB

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