application.yml 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. server:
  2. port: 9002
  3. eureka:
  4. client:
  5. serviceUrl:
  6. defaultZone: http://admin:admin123@localhost:8761/eureka/eureka/
  7. instance:
  8. lease-renewal-interval-in-seconds: 5
  9. spring:
  10. application:
  11. name: teacher-server
  12. datasource:
  13. name: test
  14. url: jdbc:mysql://47.99.212.176:3306/mec_dev?useUnicode=true&characterEncoding=UTF8&serverTimezone=Asia/Shanghai
  15. username: mec_dev
  16. password: mec_dev
  17. # 使用druid数据源
  18. type: com.alibaba.druid.pool.DruidDataSource
  19. driver-class-name: com.mysql.cj.jdbc.Driver
  20. filters: stat
  21. maxActive: 20
  22. initialSize: 1
  23. maxWait: 60000
  24. minIdle: 1
  25. timeBetweenEvictionRunsMillis: 60000
  26. minEvictableIdleTimeMillis: 300000
  27. validationQuery: select 'x'
  28. testWhileIdle: true
  29. testOnBorrow: false
  30. testOnReturn: false
  31. poolPreparedStatements: true
  32. maxOpenPreparedStatements: 20
  33. redis:
  34. host: 47.99.212.176
  35. port: 6379
  36. password:
  37. database: 0
  38. #连接超时时间(毫秒)
  39. timeout: 10000
  40. pool:
  41. #连接池最大连接数(使用负值表示没有限制)
  42. max-active: 10
  43. #连接池最大阻塞等待时间(使用负值表示没有限制)
  44. max-wait: -1
  45. #连接池中的最大空闲连接
  46. max-idle: 10
  47. #连接池中的最小空闲连接
  48. min-idle: 0
  49. mybatis:
  50. mapperLocations: classpath:config/mybatis/*.xml
  51. swagger:
  52. base-package: com.ym.mec.teacher.controller
  53. ##认证
  54. security:
  55. oauth2:
  56. client:
  57. client-id: app
  58. client-secret: app
  59. resource:
  60. token-info-uri: http://localhost:8001/oauth/check_token
  61. #spring boot admin 相关配置
  62. management:
  63. endpoints:
  64. web:
  65. exposure:
  66. include: "*"
  67. endpoint:
  68. health:
  69. show-details: ALWAYS
  70. ribbon:
  71. ReadTimeout: 60000
  72. ConnectTimeout: 60000
  73. logging:
  74. level:
  75. com.ym.mec.auth.api.client.SysUserFeignService: DEBUG