12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- server:
- port: 8086
- spring:
- servlet:
- multipart:
- enabled: true
- max-file-size: 10MB
- max-request-size: 12MB
- elasticsearch:
- rest:
- #使用内置es的配置
- uris: http://127.0.0.1:9200
- username:
- password:
- connection-timeout: 10s
- redis:
- #使用内置redis的配置
- host: 127.0.0.1
- port: 6379
- database: 0
- password:
- mvc:
- pathmatch:
- matching-strategy: ant_path_matcher
- #图片存储用的是阿里云oss,如果需要上传产品图片才需要配置
- aliyun:
- bucketId: iotkit-img
- endpoint: oss-cn-shenzhen.aliyuncs.com
- accessKeyId: 填写阿里云accessKeyId
- accessKeySecret: 填写阿里云accessKeySecret
- sa-token:
- # token名称 (同时也是cookie名称)
- token-name: token
- # token有效期,单位s 默认30天, -1代表永不过期
- timeout: 2592000
- # token临时有效期 (指定时间内无操作就视为token过期) 单位: 秒
- activity-timeout: -1
- # 是否允许同一账号并发登录 (为true时允许一起登录, 为false时新登录挤掉旧登录)
- is-concurrent: true
- # 在多人登录同一账号时,是否共用一个token (为true时所有登录共用一个token, 为false时每次登录新建一个token)
- is-share: false
- # token风格
- token-style: uuid
- # 是否输出操作日志
- is-log: false
- #认证中心地址
- oauth2:
- auth-server-url: http://127.0.0.1:8086
|