application.yml 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. server:
  2. port: 9002
  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-teacher
  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: teacher-server
  24. servlet:
  25. multipart:
  26. max-file-size: 10MB
  27. datasource:
  28. name: test
  29. url: jdbc:mysql://47.99.212.176:3306/mec_dev?useUnicode=true&characterEncoding=UTF8&serverTimezone=Asia/Shanghai
  30. username: mec_dev
  31. password: mec_dev
  32. # 使用druid数据源
  33. type: com.alibaba.druid.pool.DruidDataSource
  34. driver-class-name: com.mysql.cj.jdbc.Driver
  35. filters: stat
  36. maxActive: 20
  37. initialSize: 1
  38. maxWait: 60000
  39. minIdle: 1
  40. timeBetweenEvictionRunsMillis: 60000
  41. minEvictableIdleTimeMillis: 300000
  42. validationQuery: select 'x'
  43. testWhileIdle: true
  44. testOnBorrow: false
  45. testOnReturn: false
  46. poolPreparedStatements: true
  47. maxOpenPreparedStatements: 20
  48. redis:
  49. host: 47.99.212.176
  50. port: 6379
  51. password:
  52. database: 0
  53. #连接超时时间(毫秒)
  54. timeout: 10000
  55. pool:
  56. #连接池最大连接数(使用负值表示没有限制)
  57. max-active: 10
  58. #连接池最大阻塞等待时间(使用负值表示没有限制)
  59. max-wait: -1
  60. #连接池中的最大空闲连接
  61. max-idle: 10
  62. #连接池中的最小空闲连接
  63. min-idle: 0
  64. mybatis:
  65. mapperLocations: classpath:config/mybatis/*.xml
  66. swagger:
  67. base-package: com.ym.mec.teacher.controller
  68. ##认证
  69. security:
  70. oauth2:
  71. client:
  72. client-id: app
  73. client-secret: app
  74. resource:
  75. token-info-uri: http://localhost:8001/oauth/check_token
  76. #spring boot admin 相关配置
  77. management:
  78. endpoints:
  79. web:
  80. exposure:
  81. include: "*"
  82. endpoint:
  83. health:
  84. show-details: ALWAYS
  85. ribbon:
  86. ReadTimeout: 60000
  87. ConnectTimeout: 60000
  88. push:
  89. jiguang:
  90. reqURL: https://api.jpush.cn/v3/push
  91. appKey: 7e0282ca92c12c8c45a93bb3
  92. masterSecret: d47430e2f4755ef5dc050ac5
  93. apns_production: false
  94. logging:
  95. level:
  96. com.ym.mec.auth.api.client.SysUserFeignService: DEBUG