uaa-service-dev.yml 3.1 KB

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