application.yml 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687
  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. configuration:
  56. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  57. swagger:
  58. base-package: com.ym.mec.web.controller
  59. ##认证
  60. security:
  61. oauth2:
  62. client:
  63. client-id: app
  64. client-secret: app
  65. resource:
  66. token-info-uri: http://localhost:8001/oauth/check_token
  67. #spring boot admin 相关配置
  68. management:
  69. endpoints:
  70. web:
  71. exposure:
  72. include: "*"
  73. endpoint:
  74. health:
  75. show-details: ALWAYS
  76. ribbon:
  77. ReadTimeout: 60000
  78. ConnectTimeout: 60000