feat: 根据token分页查询用户日志和用户信息

This commit is contained in:
bunny 2024-10-22 10:59:55 +08:00
parent e2fb65cc29
commit bd9174a051
2 changed files with 2 additions and 12 deletions

View File

@ -16,7 +16,7 @@ public class TestPath {
@Test @Test
void testPath() { void testPath() {
String scriptPath = Objects.requireNonNull(getClass().getClassLoader().getResource("static/backup.sh")).getPath(); String scriptPath = Objects.requireNonNull(getClass().getClassLoader().getResource("static/backup.sh")).getPath();
String path = ScriptExecutor.class.getClassLoader().getResource("static/backup.sh").getPath(); String path = Objects.requireNonNull(ScriptExecutor.class.getClassLoader().getResource("static/backup.sh")).getPath();
System.out.println(path); System.out.println(path);
// 执行脚本 // 执行脚本
ProcessBuilder processBuilder = new ProcessBuilder("bash", scriptPath); ProcessBuilder processBuilder = new ProcessBuilder("bash", scriptPath);
@ -36,6 +36,7 @@ public class TestPath {
void test2() { void test2() {
ClassLoader classLoader = ResourceLoader.class.getClassLoader(); ClassLoader classLoader = ResourceLoader.class.getClassLoader();
InputStream inputStream = classLoader.getResourceAsStream("static/backup.sh"); InputStream inputStream = classLoader.getResourceAsStream("static/backup.sh");
assert inputStream != null;
try (java.util.Scanner s = new java.util.Scanner(inputStream)) { try (java.util.Scanner s = new java.util.Scanner(inputStream)) {
while (s.hasNext()) { while (s.hasNext()) {
System.out.println(s.nextLine()); System.out.println(s.nextLine());

View File

@ -1,11 +0,0 @@
package cn.bunny.services.security.service.impl;
import org.junit.jupiter.api.Test;
class CustomAuthorizationManagerServiceImplTest {
@Test
void testRequestUrl() {
String requestURI = "http://localhost:7000/api/user/noManage/getAdminUserList";
System.out.println(requestURI.contains("noManage"));
}
}