feat: 引入spring security和oauth2库还有jwt库,实现基本的注册功能和登录功能

This commit is contained in:
2025-11-19 23:12:35 +08:00
parent 09a5674672
commit 9b28ef0a37
23 changed files with 496 additions and 34 deletions

View File

@@ -17,7 +17,7 @@ springdoc:
group-configs:
- group: 'default'
paths-to-match: '/**'
packages-to-scan: cn.meowrain.aioj
packages-to-scan: cn.meowrain.aioj.backend.userservice.controller
knife4j:
basic:
enable: true
@@ -27,3 +27,6 @@ mybatis-plus:
configuration:
log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
mapper-locations: classpath*:/mapper/**/*.xml
jwt:
secret: "12345678901234567890123456789012" # 至少32字节
expire: 86400000 # 24小时单位毫秒