12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152 |
- server:
- port: 8888
- spring:
- datasource:
- url: jdbc:mysql://localhost:3306/school?useUnicode=true&characterEncoding=UTF-8
- driver-class-name: com.mysql.cj.jdbc.Driver
- username: root
- password: 13316814026
- mvc:
- hidden-method:
- filter:
- enabled: true #开启页面表单的Rest功能
- servlet:
- multipart:
- max-file-size: 10MB
- redis:
- host: localhost # Redis服务器地址
- database: 1 # Redis数据库索引(默认为0)
- port: 6379 # Redis服务器连接端口
- password: # Redis服务器连接密码(默认为空)
- jedis:
- pool:
- max-active: 8 # 连接池最大连接数(使用负值表示没有限制)
- max-wait: -1ms # 连接池最大阻塞等待时间(使用负值表示没有限制)
- max-idle: 8 # 连接池中的最大空闲连接
- min-idle: 0 # 连接池中的最小空闲连接
- timeout: 3000ms # 连接超时时间(毫秒)
- cache:
- # spring cache 缓存类型为redis 也可以是其他的实现
- type: redis
- mybatis:
- configuration:
- map-underscore-to-camel-case: true
- school:
- security:
- jwt-key: webporject
- token-expired-in: 86400000
- jwt:
- header: Authorization
- # 令牌前缀
- token-start-with: Bearer
- online-key: school
- # 是否限制单用户登录
- single:
- login: false
|