62 lines
1.6 KiB
YAML
62 lines
1.6 KiB
YAML
server:
|
|
port: 8080
|
|
|
|
spring:
|
|
profiles:
|
|
active: dev
|
|
main:
|
|
allow-circular-references: true
|
|
datasource:
|
|
druid:
|
|
driver-class-name: ${sky.datasource.driver-class-name}
|
|
url: jdbc:mysql://${sky.datasource.host}:${sky.datasource.port}/${sky.datasource.database}?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf-8&zeroDateTimeBehavior=convertToNull&useSSL=false&allowPublicKeyRetrieval=true
|
|
username: ${sky.datasource.username}
|
|
password: ${sky.datasource.password}
|
|
servlet:
|
|
multipart:
|
|
max-file-size: 10MB
|
|
max-request-size: 10MB
|
|
redis:
|
|
host: ${sky.redis.host}
|
|
port: ${sky.redis.port}
|
|
password: ${sky.redis.password}
|
|
database: ${sky.redis.database}
|
|
timeout: 5000
|
|
|
|
|
|
mybatis:
|
|
#mapper配置文件
|
|
mapper-locations: classpath:mapper/*.xml
|
|
type-aliases-package: com.sky.entity
|
|
configuration:
|
|
#开启驼峰命名
|
|
map-underscore-to-camel-case: true
|
|
|
|
logging:
|
|
level:
|
|
com:
|
|
sky:
|
|
mapper: debug
|
|
service: info
|
|
controller: info
|
|
|
|
sky:
|
|
jwt:
|
|
# 设置jwt签名加密时使用的秘钥
|
|
admin-secret-key: itcast
|
|
# 设置jwt过期时间
|
|
admin-ttl: 66666666666666
|
|
# 设置前端传递过来的令牌名称
|
|
admin-token-name: token
|
|
user-secret-key: itheima
|
|
user-ttl: 66666666666666
|
|
user-token-name: authentication
|
|
|
|
minio:
|
|
endpointUrl: ${sky.minio.endpointUrl}
|
|
accessKey: ${sky.minio.accessKey}
|
|
secretKey: ${sky.minio.secretKey}
|
|
bucket-name: ${sky.minio.bucket-name}
|
|
wechat:
|
|
appid: ${sky.wechat.appid}
|
|
secret: ${sky.wechat.secret} |