application.yaml 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. server:
  2. port: 8888
  3. spring:
  4. datasource:
  5. url: jdbc:mysql://localhost:3306/school?useUnicode=true&characterEncoding=UTF-8
  6. driver-class-name: com.mysql.cj.jdbc.Driver
  7. username: root
  8. password: 13316814026
  9. mvc:
  10. hidden-method:
  11. filter:
  12. enabled: true #开启页面表单的Rest功能
  13. servlet:
  14. multipart:
  15. max-file-size: 10MB
  16. redis:
  17. host: localhost # Redis服务器地址
  18. database: 1 # Redis数据库索引(默认为0)
  19. port: 6379 # Redis服务器连接端口
  20. password: # Redis服务器连接密码(默认为空)
  21. jedis:
  22. pool:
  23. max-active: 8 # 连接池最大连接数(使用负值表示没有限制)
  24. max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制)
  25. max-idle: 8 # 连接池中的最大空闲连接
  26. min-idle: 0 # 连接池中的最小空闲连接
  27. timeout: 3000ms # 连接超时时间(毫秒)
  28. cache:
  29. # spring cache 缓存类型为redis 也可以是其他的实现
  30. type: redis
  31. mybatis:
  32. configuration:
  33. map-underscore-to-camel-case: true
  34. school:
  35. security:
  36. jwt-key: webporject
  37. token-expired-in: 86400000
  38. jwt:
  39. header: Authorization
  40. # 令牌前缀
  41. token-start-with: Bearer
  42. online-key: school
  43. # 是否限制单用户登录
  44. single:
  45. login: false