|
|
@@ -27,7 +27,7 @@ spring:
|
|
|
strict: false #严格匹配数据源,默认false. true未匹配到指定数据源时抛异常,false使用默认数据源
|
|
|
datasource:
|
|
|
db-admin:
|
|
|
- url: jdbc:mysql://121.40.98.15:3307/charge_admin?tinyInt1isBit=false
|
|
|
+ url: jdbc:mysql://121.40.98.15:3307/charge_admin?tinyInt1isBit=false&serverTimezone=Asia/Shanghai
|
|
|
username: root
|
|
|
password: 123456
|
|
|
driver-class-name: com.mysql.cj.jdbc.Driver
|
|
|
@@ -49,7 +49,7 @@ spring:
|
|
|
time-to-live: 604800
|
|
|
mybatis-plus:
|
|
|
mapper-locations: classpath:mappers/**/*.xml
|
|
|
-# type-aliases-package: com.kym.entity.admin
|
|
|
+ type-handlers-package: com.kym.mapper.typehandle
|
|
|
|
|
|
main:
|
|
|
allow-circular-references: true
|
|
|
@@ -58,6 +58,8 @@ mybatis-plus:
|
|
|
|
|
|
server:
|
|
|
port: 8088
|
|
|
+ servlet:
|
|
|
+ context-path: /api
|
|
|
# PageHelper
|
|
|
pagehelper:
|
|
|
propertyName: propertyValue
|
|
|
@@ -70,7 +72,7 @@ sa-token:
|
|
|
# token 名称(同时也是 cookie 名称)
|
|
|
token-name: satoken
|
|
|
# token 有效期(单位:秒) 默认30分钟,-1 代表永久有效
|
|
|
- timeout: 1800
|
|
|
+ timeout: -1
|
|
|
# token 最低活跃频率(单位:秒),如果 token 超过此时间没有访问系统就会被冻结,默认-1 代表不限制,永不冻结
|
|
|
active-timeout: -1
|
|
|
# 是否允许同一账号多地同时登录 (为 true 时允许一起登录, 为 false 时新登录挤掉旧登录)
|