application.yml 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. server:
  2. port: 8005
  3. tomcat:
  4. accesslog:
  5. enabled: true
  6. buffered: true
  7. directory: /var/logs
  8. file-date-format: -yyyy-MM-dd
  9. pattern: common
  10. prefix: tomcat-web
  11. rename-on-rotate: false
  12. request-attributes-enabled: false
  13. rotate: true
  14. suffix: .log
  15. eureka:
  16. client:
  17. serviceUrl:
  18. defaultZone: http://admin:admin123@localhost:8761/eureka/eureka/
  19. instance:
  20. lease-renewal-interval-in-seconds: 5
  21. spring:
  22. servlet:
  23. multipart:
  24. max-file-size: 10485760
  25. max-request-size: 10485760
  26. application:
  27. name: web-server
  28. datasource:
  29. name: test
  30. url: jdbc:mysql://47.99.212.176:3306/mec_dev?useUnicode=true&characterEncoding=UTF8&serverTimezone=Asia/Shanghai
  31. username: mec_dev
  32. password: mec_dev
  33. # 使用druid数据源
  34. type: com.alibaba.druid.pool.DruidDataSource
  35. driver-class-name: com.mysql.cj.jdbc.Driver
  36. filters: stat
  37. maxActive: 20
  38. initialSize: 1
  39. maxWait: 60000
  40. minIdle: 1
  41. timeBetweenEvictionRunsMillis: 60000
  42. minEvictableIdleTimeMillis: 300000
  43. validationQuery: select 'x'
  44. testWhileIdle: true
  45. testOnBorrow: false
  46. testOnReturn: false
  47. poolPreparedStatements: true
  48. maxOpenPreparedStatements: 20
  49. redis:
  50. host: 47.99.212.176
  51. port: 6379
  52. password:
  53. database: 0
  54. #连接超时时间(毫秒)
  55. timeout: 10000
  56. pool:
  57. #连接池最大连接数(使用负值表示没有限制)
  58. max-active: 10
  59. #连接池最大阻塞等待时间(使用负值表示没有限制)
  60. max-wait: -1
  61. #连接池中的最大空闲连接
  62. max-idle: 10
  63. #连接池中的最小空闲连接
  64. min-idle: 0
  65. mybatis:
  66. mapperLocations: classpath:config/mybatis/*.xml
  67. configuration:
  68. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  69. swagger:
  70. base-package: com.ym.mec.web.controller
  71. ##认证
  72. security:
  73. oauth2:
  74. client:
  75. client-id: app
  76. client-secret: app
  77. resource:
  78. token-info-uri: http://localhost:8001/oauth/check_token
  79. #spring boot admin 相关配置
  80. management:
  81. endpoints:
  82. web:
  83. exposure:
  84. include: "*"
  85. endpoint:
  86. health:
  87. show-details: ALWAYS
  88. ribbon:
  89. ReadTimeout: 60000
  90. ConnectTimeout: 60000