增加satoken依赖,增加管理端和客户端鉴权功能
This commit is contained in:
@@ -1,6 +1,7 @@
|
|||||||
package com.czg.controller;
|
package com.czg.controller;
|
||||||
|
|
||||||
import org.springframework.web.bind.annotation.GetMapping;
|
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.RequestMapping;
|
||||||
import org.springframework.web.bind.annotation.RestController;
|
import org.springframework.web.bind.annotation.RestController;
|
||||||
|
|
||||||
@@ -11,8 +12,8 @@ import org.springframework.web.bind.annotation.RestController;
|
|||||||
@RequestMapping("auth")
|
@RequestMapping("auth")
|
||||||
public class AuthorizationController {
|
public class AuthorizationController {
|
||||||
|
|
||||||
@GetMapping
|
@PostMapping("login")
|
||||||
public void test() {
|
public void login() {
|
||||||
System.out.println(1);
|
System.out.println(1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -51,9 +51,5 @@
|
|||||||
<scope>provided</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
<dependency>
|
|
||||||
<groupId>cn.dev33</groupId>
|
|
||||||
<artifactId>sa-token-spring-boot3-starter</artifactId>
|
|
||||||
</dependency>
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
</project>
|
</project>
|
||||||
|
|||||||
Reference in New Issue
Block a user