application.yml 1.5 KB

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