feat: 根据token分页查询用户日志和用户信息
This commit is contained in:
parent
e2fb65cc29
commit
bd9174a051
|
@ -16,7 +16,7 @@ public class TestPath {
|
|||
@Test
|
||||
void testPath() {
|
||||
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);
|
||||
// 执行脚本
|
||||
ProcessBuilder processBuilder = new ProcessBuilder("bash", scriptPath);
|
||||
|
@ -36,6 +36,7 @@ public class TestPath {
|
|||
void test2() {
|
||||
ClassLoader classLoader = ResourceLoader.class.getClassLoader();
|
||||
InputStream inputStream = classLoader.getResourceAsStream("static/backup.sh");
|
||||
assert inputStream != null;
|
||||
try (java.util.Scanner s = new java.util.Scanner(inputStream)) {
|
||||
while (s.hasNext()) {
|
||||
System.out.println(s.nextLine());
|
||||
|
|
|
@ -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"));
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue