青羊经侦大队-数据平台
baizonghao
2023-04-23 028bd9c7cccb1ba7569636c631fa3c83a16d3e48
src/test/java/com/example/jz/JzApplicationTests.java
@@ -1,5 +1,6 @@
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;
@@ -10,10 +11,18 @@
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!@#"));
    }
}