application.yml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  1. server:
  2. port: 8005
  3. connection-timeout: 60000
  4. tomcat:
  5. accesslog:
  6. enabled: true
  7. buffered: true
  8. directory: /var/logs
  9. file-date-format: -yyyy-MM-dd
  10. pattern: common
  11. prefix: tomcat-web
  12. rename-on-rotate: false
  13. request-attributes-enabled: false
  14. rotate: true
  15. suffix: .log
  16. eureka:
  17. client:
  18. serviceUrl:
  19. defaultZone: http://admin:admin123@localhost:8761/eureka/eureka/
  20. instance:
  21. lease-renewal-interval-in-seconds: 5
  22. prefer-ip-address: true
  23. spring:
  24. servlet:
  25. multipart:
  26. max-file-size: 150MB
  27. max-request-size: 150MB
  28. application:
  29. name: web-server
  30. data:
  31. mongodb:
  32. uri: mongodb://root:dayayuemeng2019@47.114.1.200:27017/mec_dev
  33. datasource:
  34. name: test
  35. url: jdbc:mysql://rm-bp13774a2o87ti8c7mo.mysql.rds.aliyuncs.com:3306/mec_pro?useUnicode=true&characterEncoding=UTF8&serverTimezone=Asia/Shanghai&allowMultiQueries=true
  36. username: mec_pro
  37. password: mec@Pro9
  38. # 使用druid数据源
  39. type: com.alibaba.druid.pool.DruidDataSource
  40. druid:
  41. connection-init-sqls: SET NAMES utf8mb4 COLLATE utf8mb4_unicode_ci
  42. driver-class-name: com.mysql.cj.jdbc.Driver
  43. filters: stat
  44. maxActive: 20
  45. initialSize: 1
  46. maxWait: 60000
  47. minIdle: 1
  48. timeBetweenEvictionRunsMillis: 60000
  49. minEvictableIdleTimeMillis: 300000
  50. validationQuery: select 'x'
  51. testWhileIdle: true
  52. testOnBorrow: false
  53. testOnReturn: false
  54. poolPreparedStatements: true
  55. maxOpenPreparedStatements: 20
  56. redis:
  57. host: 47.114.1.200
  58. port: 6379
  59. password: dyym
  60. database: 0
  61. #连接超时时间(毫秒)
  62. timeout: 10000
  63. pool:
  64. #连接池最大连接数(使用负值表示没有限制)
  65. max-active: 10
  66. #连接池最大阻塞等待时间(使用负值表示没有限制)
  67. max-wait: -1
  68. #连接池中的最大空闲连接
  69. max-idle: 10
  70. #连接池中的最小空闲连接
  71. min-idle: 0
  72. mybatis:
  73. mapperLocations: classpath:config/mybatis/*.xml
  74. configuration:
  75. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  76. swagger:
  77. base-package: com.ym.mec.web.controller
  78. ##认证
  79. security:
  80. oauth2:
  81. client:
  82. client-id: app
  83. client-secret: app
  84. resource:
  85. token-info-uri: http://localhost:8001/oauth/check_token
  86. #spring boot admin 相关配置
  87. management:
  88. endpoints:
  89. web:
  90. exposure:
  91. include: "*"
  92. endpoint:
  93. health:
  94. show-details: ALWAYS
  95. ribbon:
  96. ReadTimeout: 600000
  97. ConnectTimeout: 60000
  98. logging:
  99. level:
  100. com.ym.mec.auth.api.client.SysUserFeignService: INFO
  101. message:
  102. debugMode: true
  103. ##支付流水隐藏
  104. payment:
  105. hiddenMode: false
  106. #隐藏的支付方式
  107. channel: YQPAY
  108. eseal:
  109. tsign:
  110. projectid: 4438776254
  111. projectSecret: a94cf63d6361084d232f345d71321691
  112. apisUrl: http://smlitsm.tsign.cn:8080/tgmonitor/rest/app!getAPIInfo2
  113. push:
  114. jiguang:
  115. reqURL: https://api.jpush.cn/v3/push
  116. appKey:
  117. student: 0e7422e1d6e73637e678716a
  118. teacher: 7e0282ca92c12c8c45a93bb3
  119. system: 496fc1007dea59b1b4252d2b
  120. masterSecret:
  121. student: c2361016604eab56ab2db2ac
  122. teacher: d47430e2f4755ef5dc050ac5
  123. system: a5e51e9cdb25417463afbf7a
  124. apns_production: false