增加satoken依赖,增加管理端和客户端鉴权功能
This commit is contained in:
@@ -18,4 +18,12 @@
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
|
||||
</project>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>com.czg</groupId>
|
||||
<artifactId>account-service</artifactId>
|
||||
<version>1.0.0</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
</project>
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
package com.czg.controller;
|
||||
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.RequestMapping;
|
||||
import org.springframework.web.bind.annotation.RestController;
|
||||
|
||||
/**
|
||||
* @author Administrator
|
||||
*/
|
||||
@RestController
|
||||
@RequestMapping("auth")
|
||||
public class AuthorizationController {
|
||||
|
||||
@GetMapping
|
||||
public void test() {
|
||||
System.out.println(1);
|
||||
}
|
||||
}
|
||||
@@ -1,9 +1,11 @@
|
||||
server:
|
||||
port: 9100
|
||||
servlet:
|
||||
context-path: /admin
|
||||
|
||||
spring:
|
||||
application:
|
||||
name: account-server
|
||||
|
||||
logging:
|
||||
config: classpath:logback.xml
|
||||
config: classpath:logback.xml
|
||||
|
||||
@@ -31,4 +31,4 @@
|
||||
<artifactId>spring-boot-starter-web</artifactId>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</project>
|
||||
</project>
|
||||
|
||||
Reference in New Issue
Block a user