application.yml 2.5 KB

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