application.yml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. server:
  2. port: 8005
  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. servlet:
  11. multipart:
  12. max-file-size: 10485760
  13. max-request-size: 10485760
  14. application:
  15. name: web-server
  16. datasource:
  17. name: test
  18. url: jdbc:mysql://47.99.212.176:3306/mec_dev?useUnicode=true&characterEncoding=UTF8&serverTimezone=Asia/Shanghai
  19. username: mec_dev
  20. password: mec_dev
  21. # 使用druid数据源
  22. type: com.alibaba.druid.pool.DruidDataSource
  23. driver-class-name: com.mysql.cj.jdbc.Driver
  24. filters: stat
  25. maxActive: 20
  26. initialSize: 1
  27. maxWait: 60000
  28. minIdle: 1
  29. timeBetweenEvictionRunsMillis: 60000
  30. minEvictableIdleTimeMillis: 300000
  31. validationQuery: select 'x'
  32. testWhileIdle: true
  33. testOnBorrow: false
  34. testOnReturn: false
  35. poolPreparedStatements: true
  36. maxOpenPreparedStatements: 20
  37. redis:
  38. host: 47.99.212.176
  39. port: 6379
  40. password:
  41. database: 0
  42. #连接超时时间(毫秒)
  43. timeout: 10000
  44. pool:
  45. #连接池最大连接数(使用负值表示没有限制)
  46. max-active: 10
  47. #连接池最大阻塞等待时间(使用负值表示没有限制)
  48. max-wait: -1
  49. #连接池中的最大空闲连接
  50. max-idle: 10
  51. #连接池中的最小空闲连接
  52. min-idle: 0
  53. mybatis:
  54. mapperLocations: classpath:config/mybatis/*.xml
  55. swagger:
  56. base-package: com.ym.mec.web.controller
  57. ##认证
  58. security:
  59. oauth2:
  60. client:
  61. client-id: app
  62. client-secret: app
  63. resource:
  64. token-info-uri: http://localhost:8001/oauth/check_token
  65. #spring boot admin 相关配置
  66. management:
  67. endpoints:
  68. web:
  69. exposure:
  70. include: "*"
  71. endpoint:
  72. health:
  73. show-details: ALWAYS
  74. feign:
  75. hystrix:
  76. enabled: true