|
@@ -2,7 +2,9 @@ package me.zhengjie;
|
|
|
|
|
|
import org.junit.Test;
|
|
|
import org.junit.runner.RunWith;
|
|
|
+import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.boot.test.context.SpringBootTest;
|
|
|
+import org.springframework.security.crypto.password.PasswordEncoder;
|
|
|
import org.springframework.test.context.junit4.SpringRunner;
|
|
|
|
|
|
@RunWith(SpringRunner.class)
|
|
@@ -15,5 +17,17 @@ public class EladminSystemApplicationTests {
|
|
|
|
|
|
public static void main(String[] args) {
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private PasswordEncoder passwordEncoder;
|
|
|
+
|
|
|
+ @Test
|
|
|
+ public void contextLoads1() {
|
|
|
+ System.out.println("11111111111111111111111111111111");
|
|
|
+ System.out.println(passwordEncoder.encode("yfs_admin"));
|
|
|
+ System.out.println(passwordEncoder.encode("yfs_admin"));
|
|
|
+ }
|
|
|
}
|
|
|
|