增加satoken依赖,增加管理端和客户端鉴权功能
This commit is contained in:
parent
45fa3c9202
commit
e38cb9e7c5
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -51,9 +51,5 @@
|
|||
<scope>provided</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>cn.dev33</groupId>
|
||||
<artifactId>sa-token-spring-boot3-starter</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
|
|
|
|||
Loading…
Reference in New Issue