feat(config): 更新数据库配置和JWT设置
- 修改数据库连接地址和密码 - 调整MyBatis Plus主键生成策略为auto - 移除文件上传临时目录及FFmpeg路径配置 -优化登录认证异常处理逻辑 - 完善用户注册与登录服务实现- 更新用户角色关联接口参数命名
This commit is contained in:
@@ -6,9 +6,9 @@ spring:
|
||||
name: chaos-api
|
||||
datasource:
|
||||
driver-class-name: org.mariadb.jdbc.Driver
|
||||
url: jdbc:mariadb://10.91.3.23:3306/chaos?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf-8&allowPublicKeyRetrieval=true&useSSL=false
|
||||
url: jdbc:mariadb://10.91.3.253:3306/chaos?serverTimezone=Asia/Shanghai&useUnicode=true&characterEncoding=utf-8&allowPublicKeyRetrieval=true&useSSL=false
|
||||
username: chaos
|
||||
password: zx123456..
|
||||
password: fH7NPTeRSSFFicsh
|
||||
type: com.alibaba.druid.pool.DruidDataSource
|
||||
druid:
|
||||
initial-size: 5
|
||||
@@ -20,20 +20,16 @@ spring:
|
||||
max-file-size: 100GB
|
||||
max-request-size: 100GB
|
||||
|
||||
|
||||
mybatis-plus:
|
||||
mapper-locations: classpath*:/mapper/**/*.xml
|
||||
type-aliases-package: cn.nopj.chaos_api_domain.entity
|
||||
global-config:
|
||||
db-config:
|
||||
id-type: assign_id
|
||||
id-type: auto
|
||||
configuration:
|
||||
map-underscore-to-camel-case: true
|
||||
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
|
||||
|
||||
|
||||
|
||||
|
||||
jwt:
|
||||
tokenHeader: Authorization
|
||||
tokenHead: Chaos
|
||||
@@ -41,7 +37,3 @@ jwt:
|
||||
expiration: 604800
|
||||
|
||||
|
||||
file:
|
||||
upload:
|
||||
temp-dir: ./chaos/upload
|
||||
ffmpeg-path: C:\Users\Chaos\AppData\Local\Microsoft\WinGet\Packages\Gyan.FFmpeg_Microsoft.Winget.Source_8wekyb3d8bbwe\ffmpeg-7.1.1-full_build\bin\ffmpeg.exe
|
||||
Reference in New Issue
Block a user