From 956bef16de67a9f2f09e380d7352095d86352be6 Mon Sep 17 00:00:00 2001
From: 安瑾然 <m17681517455@outlook.com>
Date: 星期一, 06 三月 2023 15:33:29 +0800
Subject: [PATCH] 用户管理添加设为警员的接口
---
src/test/java/com/example/jz/JzApplicationTests.java | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/src/test/java/com/example/jz/JzApplicationTests.java b/src/test/java/com/example/jz/JzApplicationTests.java
index 1e2ca8a..12f05a2 100644
--- a/src/test/java/com/example/jz/JzApplicationTests.java
+++ b/src/test/java/com/example/jz/JzApplicationTests.java
@@ -1,13 +1,28 @@
package com.example.jz;
+import com.example.jz.auth.DefaultPwdEncoder;
+import com.example.jz.config.MinIOConfig;
+import com.example.jz.service.MinIOService;
import org.junit.jupiter.api.Test;
+import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
@SpringBootTest
class JzApplicationTests {
+ @Autowired
+ MinIOService minIOService;
+ @Autowired
+ DefaultPwdEncoder defaultPwdEncoder;
@Test
void contextLoads() {
+ System.out.println(minIOService.getPreviewFileUrl("2fff006f3082f00e26d496dc0a47c624.png"));
+ }
+
+
+ @Test
+ void test() {
+ System.out.println(defaultPwdEncoder.encode("qyjz2022!@#"));
}
}
--
Gitblit v1.8.0