application.yml 1.9 KB

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