application.yml 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. server:
  2. port: 8001
  3. eureka:
  4. client:
  5. serviceUrl:
  6. defaultZone: http://admin:admin123@localhost:8761/eureka/eureka/
  7. instance:
  8. lease-renewal-interval-in-seconds: 5
  9. spring:
  10. application:
  11. name: auth-server
  12. datasource:
  13. name: test
  14. url: jdbc:mysql://120.26.238.168:3306/mec_dev?useUnicode=true&characterEncoding=UTF8&serverTimezone=Asia/Shanghai
  15. username: mec_dev
  16. password: mec_dev
  17. # 使用druid数据源
  18. type: com.alibaba.druid.pool.DruidDataSource
  19. driver-class-name: com.mysql.cj.jdbc.Driver
  20. filters: stat
  21. maxActive: 20
  22. initialSize: 1
  23. maxWait: 60000
  24. minIdle: 1
  25. timeBetweenEvictionRunsMillis: 60000
  26. minEvictableIdleTimeMillis: 300000
  27. validationQuery: select 'x'
  28. testWhileIdle: true
  29. testOnBorrow: false
  30. testOnReturn: false
  31. poolPreparedStatements: true
  32. maxOpenPreparedStatements: 20
  33. redis:
  34. host: 120.26.238.168
  35. port: 6379
  36. password: ehjinrong
  37. database: 0
  38. #连接超时时间(毫秒)
  39. timeout: 10000
  40. lettuce:
  41. pool:
  42. #连接池最大连接数(使用负值表示没有限制)
  43. max-active: 10
  44. #连接池最大阻塞等待时间(使用负值表示没有限制)
  45. max-wait: -1
  46. #连接池中的最大空闲连接
  47. max-idle: 10
  48. #连接池中的最小空闲连接
  49. min-idle: 0
  50. mybatis:
  51. mapperLocations: classpath:config/mybatis/*.xml
  52. swagger:
  53. base-package: com.ym.mec.auth.web.controller
  54. #spring boot admin 相关配置
  55. management:
  56. endpoints:
  57. web:
  58. exposure:
  59. include: "*"
  60. endpoint:
  61. health:
  62. show-details: ALWAYS