添加 SaToken 过滤器和跨域配置

This commit is contained in:
2025-10-29 15:29:25 +08:00
parent 47a87f8c34
commit 79eee28b73
6 changed files with 96 additions and 10 deletions

View File

@@ -3,4 +3,15 @@ spring:
driver-class-name: org.postgresql.Driver
url: jdbc:postgresql://localhost:5432/postgres
username: root
password: 123asd
password: 123asd
knife4j:
enable: true
openapi:
title: "接口文档"
version: 1.0
group:
default:
api-rule: package
api-rule-resources:
- com.yolo.keyborad.controller

View File

@@ -1,6 +1,6 @@
spring:
application:
name: springboot-init
name: keyborad-backend
profiles:
active: dev
datasource:
@@ -27,7 +27,7 @@ server:
mybatis-plus:
configuration:
map-underscore-to-camel-case: false
log-impl: org.apache.ibatis.logging.log4j2.Log4j2Impl
log-impl: org.apache.ibatis.logging.slf4j.Slf4jImpl
global-config:
db-config:
logic-delete-field: isDelete # 全局逻辑删除的实体字段名(since 3.3.0,配置后可以忽略不配置步骤2)