application.yml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  1. server:
  2. port: 8081
  3. spring:
  4. application:
  5. name: sr-smp-dao
  6. data:
  7. mongodb:
  8. uri: mongodb://dev001:dev123@192.168.1.230:27017/srdb
  9. datasource:
  10. driver-class-name: com.mysql.cj.jdbc.Driver
  11. druid:
  12. # druid连接池监控
  13. stat-view-servlet:
  14. enabled: true
  15. url-pattern: /druid/*
  16. login-username: admin
  17. login-password: xyy123456
  18. filter:
  19. stat:
  20. enabled: true
  21. log-slow-sql: true
  22. slow-sql-millis: 1000
  23. wall:
  24. config:
  25. delete-where-none-check: true
  26. enabled: true
  27. log-violation: true
  28. throw-exception: false
  29. initialSize: 10
  30. maxActive: 50
  31. maxOpenPreparedStatements: 50
  32. maxWait: 60000
  33. minEvictableIdleTimeMillis: 300000
  34. minIdle: 1
  35. poolPreparedStatements: false
  36. testOnBorrow: true
  37. testOnReturn: false
  38. testWhileIdle: true
  39. timeBetweenEvictionRunsMillis: 60000
  40. validationQuery: SELECT 1 FROM dual
  41. type: com.alibaba.druid.pool.DruidDataSource
  42. url: jdbc:mysql://192.168.1.230:3306/sr_smp?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai
  43. username: root
  44. password: xyy123456
  45. jackson:
  46. date-format: yyyy-MM-dd HH:mm:ss
  47. default-property-inclusion: non_empty
  48. time-zone: Asia/Shanghai
  49. # redis 配置
  50. redis:
  51. # 地址
  52. host: 192.168.1.230
  53. # 端口,默认为6379
  54. port: 6379
  55. # 数据库索引
  56. database: 10
  57. # 密码
  58. password: xyy123456
  59. # 连接超时时间
  60. timeout: 10s
  61. lettuce:
  62. pool:
  63. # 连接池中的最小空闲连接
  64. min-idle: 0
  65. # 连接池中的最大空闲连接
  66. max-idle: 8
  67. # 连接池的最大数据库连接数
  68. max-active: 8
  69. # #连接池最大阻塞等待时间(使用负值表示没有限制)
  70. max-wait: -1ms
  71. logging:
  72. level:
  73. com:
  74. sr:
  75. smp:
  76. mapper:
  77. '*': debug