登录和刷新token优化
This commit is contained in:
@@ -3,8 +3,7 @@ server.port=8088
|
||||
|
||||
## mysql 数据连接信息
|
||||
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
|
||||
#spring.datasource.url=jdbc:mysql://139.199.77.221:3306/spring_boot?useUnicode=true&characterEncoding=utf8&useSSL=false
|
||||
spring.datasource.url=jdbc:mysql://127.0.0.1:3305/video_tablet_db?useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
|
||||
spring.datasource.url=jdbc:mysql://139.199.77.221:13306/video_tablet_db?useUnicode=true&characterEncoding=utf8&useSSL=false&allowPublicKeyRetrieval=true
|
||||
spring.datasource.username=tt
|
||||
spring.datasource.password=fanhuitong
|
||||
|
||||
@@ -12,9 +11,9 @@ spring.datasource.password=fanhuitong
|
||||
# 0也是默认值,表示你要操控的 Redis 上的哪个数据库
|
||||
spring.data.redis.database=0
|
||||
# 6379也是默认值,表示 Redis 端口
|
||||
spring.data.redis.port=6379
|
||||
spring.data.redis.port=16379
|
||||
# 这里填写你的服务器地址
|
||||
spring.data.redis.host=127.0.0.1
|
||||
spring.data.redis.host=139.199.77.221
|
||||
spring.data.redis.password=fanhuitong
|
||||
# 可省略
|
||||
spring.data.redis.lettuce.pool.min-idle=5
|
||||
@@ -33,3 +32,23 @@ jwt.secret='wPQ1qRFo4YbuA849tmwKnDpQ8891vJBo'
|
||||
# 可选,根据你的需要设置过期时间
|
||||
jwt.access-expire=86400000
|
||||
jwt.refresh-expire=2592000000
|
||||
|
||||
jwt.tablet.secret='Your256BitSecretKeyMustBeAtLeast32BytesLong!'
|
||||
|
||||
# 指定日志文件名(项目根目录生成)
|
||||
logging.file.name=app.log
|
||||
# 或指定日志目录(目录下生成 spring.log)
|
||||
logging.file.path=/var/log/myapp
|
||||
|
||||
# 设置日志级别
|
||||
logging.level.root=INFO////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
logging.level.com.example=DEBUG
|
||||
|
||||
# 自定义日志格式
|
||||
logging.pattern.console=%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n
|
||||
logging.pattern.file=%d{yyyy-MM-dd} [%thread] %-5level %logger - %msg%n
|
||||
|
||||
# 日志文件切割(默认10MB分割,保留7天)
|
||||
logging.logback.rollingpolicy.max-file-size=10MB
|
||||
logging.logback.rollingpolicy.max-history=30
|
||||
Reference in New Issue
Block a user