application.yaml 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. server:
  2. port: 8888
  3. spring:
  4. mvc:
  5. hidden-method:
  6. filter:
  7. enabled: true #开启页面表单的Rest功能
  8. servlet:
  9. multipart:
  10. max-file-size: 10MB
  11. redis:
  12. host: localhost # Redis服务器地址
  13. database: 1 # Redis数据库索引(默认为0)
  14. port: 6379 # Redis服务器连接端口
  15. password: # Redis服务器连接密码(默认为空)
  16. jedis:
  17. pool:
  18. max-active: 8 # 连接池最大连接数(使用负值表示没有限制)
  19. max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制)
  20. max-idle: 8 # 连接池中的最大空闲连接
  21. min-idle: 0 # 连接池中的最小空闲连接
  22. timeout: 3000ms # 连接超时时间(毫秒)
  23. cache:
  24. # spring cache 缓存类型为redis 也可以是其他的实现
  25. type: redis
  26. datasource:
  27. type: com.zaxxer.hikari.HikariDataSource
  28. driverClassName: com.mysql.cj.jdbc.Driver
  29. url: jdbc:mysql://localhost:3306/school?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false&zeroDateTimeBehavior=convertToNull
  30. username: root
  31. password: 13316814026
  32. mybatis-plus:
  33. configuration:
  34. log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
  35. map-underscore-to-camel-case: true