application.yml 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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-user
  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. application:
  23. name: user-server
  24. servlet:
  25. multipart:
  26. # 最大支持文件大小
  27. max-file-size: 50MB
  28. # 最大支持请求大小
  29. max-request-size: 50MB
  30. datasource:
  31. name: test
  32. # url: jdbc:mysql://47.99.212.176:3306/edu_saas?useUnicode=true&characterEncoding=UTF8&serverTimezone=Asia/Shanghai
  33. # username: edu_saas
  34. # password: edu_saas
  35. url: jdbc:mysql://47.114.176.40:3306/edu_saas?useUnicode=true&characterEncoding=UTF8&serverTimezone=Asia/Shanghai&allowMultiQueries=true
  36. username: edu_saas
  37. password: dayaDataOnline@2019
  38. # 使用druid数据源
  39. type: com.alibaba.druid.pool.DruidDataSource
  40. driver-class-name: com.mysql.cj.jdbc.Driver
  41. filters: stat
  42. maxActive: 20
  43. initialSize: 1
  44. maxWait: 60000
  45. minIdle: 1
  46. timeBetweenEvictionRunsMillis: 60000
  47. minEvictableIdleTimeMillis: 300000
  48. validationQuery: select 'x'
  49. testWhileIdle: true
  50. testOnBorrow: false
  51. testOnReturn: false
  52. poolPreparedStatements: true
  53. maxOpenPreparedStatements: 20
  54. redis:
  55. host: 47.114.176.40
  56. port: 6379
  57. password: dyym
  58. database: 1
  59. #连接超时时间(毫秒)
  60. timeout: 10000
  61. jedis:
  62. pool:
  63. #连接池最大连接数(使用负值表示没有限制)
  64. max-active: 10
  65. #连接池最大阻塞等待时间(使用负值表示没有限制)
  66. max-wait: -1
  67. #连接池中的最大空闲连接
  68. max-idle: 10
  69. #连接池中的最小空闲连接
  70. min-idle: 1
  71. mybatis:
  72. mapperLocations: classpath:config/mybatis/*.xml
  73. configuration:
  74. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  75. swagger:
  76. base-package: com.keao.edu.user.controller
  77. ##认证
  78. security:
  79. oauth2:
  80. client:
  81. client-id: student
  82. client-secret: student
  83. resource:
  84. token-info-uri: http://localhost:8001/oauth/check_token
  85. #spring boot admin 相关配置
  86. management:
  87. endpoints:
  88. web:
  89. exposure:
  90. include: "*"
  91. endpoint:
  92. health:
  93. show-details: ALWAYS
  94. ribbon:
  95. ReadTimeout: 60000
  96. ConnectTimeout: 60000
  97. message:
  98. debugMode: true
  99. logging:
  100. level:
  101. com.keao.edu.user.api.client.EduUserFeignService: INFO
  102. com.keao.edu.user.dao: DEBUG
  103. push:
  104. jiguang:
  105. reqURL: https://api.jpush.cn/v3/push
  106. appKey:
  107. student: 0e7422e1d6e73637e678716a
  108. teacher: 7e0282ca92c12c8c45a93bb3
  109. system: a003c997b1add94aa8d6caf9
  110. masterSecret:
  111. student: c2361016604eab56ab2db2ac
  112. teacher: d47430e2f4755ef5dc050ac5
  113. system: c281fe6a21acf2e8a9f9d628
  114. apns_production: false