application.yml 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. server:
  2. port: 9001
  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: student-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. # configuration:
  52. # log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  53. swagger:
  54. base-package: com.ym.mec.student.controller
  55. ##认证
  56. security:
  57. oauth2:
  58. client:
  59. client-id: student
  60. client-secret: student
  61. resource:
  62. token-info-uri: http://localhost:8001/oauth/check_token
  63. #spring boot admin 相关配置
  64. management:
  65. endpoints:
  66. web:
  67. exposure:
  68. include: "*"
  69. endpoint:
  70. health:
  71. show-details: ALWAYS
  72. ribbon:
  73. ReadTimeout: 60000
  74. ConnectTimeout: 60000
  75. logging:
  76. level:
  77. com.ym.mec.auth.api.client.SysUserFeignService: DEBUG