application.yml 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. server:
  2. port: 9003
  3. eureka:
  4. client:
  5. serviceUrl:
  6. defaultZone: http://admin:admin123@localhost:8761/eureka/eureka/
  7. register-with-eureka: false #是否将自己注册到Eureka Server上,默认为true
  8. fetch-registry: false #是否从Eureka Server上获取注册信息,默认为true
  9. spring:
  10. application:
  11. name: education-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-plus:
  50. mapper-locations: classpath:com/ym/mec/education/mapper/xml/*.xml
  51. typeAliasesPackage : com.ym.mec.education.entity
  52. configuration:
  53. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  54. swagger:
  55. base-package: com.ym.mec.education.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. feign:
  74. hystrix:
  75. enabled: true