增加satoken依赖,增加管理端和客户端鉴权功能

This commit is contained in:
张松 2025-02-07 16:57:44 +08:00
parent 45fa3c9202
commit e38cb9e7c5
2 changed files with 3 additions and 6 deletions

View File

@ -1,6 +1,7 @@
package com.czg.controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@ -11,8 +12,8 @@ import org.springframework.web.bind.annotation.RestController;
@RequestMapping("auth")
public class AuthorizationController {
@GetMapping
public void test() {
@PostMapping("login")
public void login() {
System.out.println(1);
}
}

View File

@ -51,9 +51,5 @@
<scope>provided</scope>
</dependency>
<dependency>
<groupId>cn.dev33</groupId>
<artifactId>sa-token-spring-boot3-starter</artifactId>
</dependency>
</dependencies>
</project>