application-template.yml 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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: 150MB
  25. max-request-size: 150MB
  26. application:
  27. name: web-server
  28. datasource:
  29. name: test
  30. # url: jdbc:mysql://47.114.1.200:3306/mec_data_online?useUnicode=true&characterEncoding=UTF8&serverTimezone=Asia/Shanghai&allowMultiQueries=true
  31. # username: dayaData
  32. # password: dayaDataOnline2019
  33. url: jdbc:mysql://47.114.1.200:3306/mec_dev?useUnicode=true&characterEncoding=UTF8&serverTimezone=Asia/Shanghai&allowMultiQueries=true
  34. username: dayaData
  35. password: dayaDataOnline@2019
  36. # 使用druid数据源
  37. type: com.alibaba.druid.pool.DruidDataSource
  38. driver-class-name: com.mysql.cj.jdbc.Driver
  39. filters: stat
  40. maxActive: 20
  41. initialSize: 1
  42. maxWait: 60000
  43. minIdle: 1
  44. timeBetweenEvictionRunsMillis: 60000
  45. minEvictableIdleTimeMillis: 300000
  46. validationQuery: select 'x'
  47. testWhileIdle: true
  48. testOnBorrow: false
  49. testOnReturn: false
  50. poolPreparedStatements: true
  51. maxOpenPreparedStatements: 20
  52. redis:
  53. host: 47.114.1.200
  54. port: 6379
  55. password:
  56. database: 0
  57. #连接超时时间(毫秒)
  58. timeout: 10000
  59. pool:
  60. #连接池最大连接数(使用负值表示没有限制)
  61. max-active: 10
  62. #连接池最大阻塞等待时间(使用负值表示没有限制)
  63. max-wait: -1
  64. #连接池中的最大空闲连接
  65. max-idle: 10
  66. #连接池中的最小空闲连接
  67. min-idle: 0
  68. mybatis:
  69. mapperLocations: classpath:config/mybatis/*.xml
  70. #configuration:
  71. #log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  72. swagger:
  73. base-package: com.ym.mec.web.controller
  74. ##认证
  75. security:
  76. oauth2:
  77. client:
  78. client-id: app
  79. client-secret: app
  80. resource:
  81. token-info-uri: http://localhost:8001/oauth/check_token
  82. #spring boot admin 相关配置
  83. management:
  84. endpoints:
  85. web:
  86. exposure:
  87. include: "*"
  88. endpoint:
  89. health:
  90. show-details: ALWAYS
  91. ribbon:
  92. ReadTimeout: 60000
  93. ConnectTimeout: 60000
  94. message:
  95. debugMode: true
  96. ##支付流水隐藏
  97. payment:
  98. hiddenMode: true
  99. #隐藏的支付方式
  100. channel: YQPAY,