Browse Source

'修改redis配置'

yq 2 years ago
parent
commit
b9144d93b3

+ 3 - 3
eladmin-system/src/main/resources/config/application.yml

@@ -24,9 +24,9 @@ spring:
   redis:
     #数据库索引
     database: ${REDIS_DB:5}
-    host: ${REDIS_HOST:10.21.39.1}
-    port: ${REDIS_PORT:6393}
-    password: ${REDIS_PWD:UCSNxJ@k}
+    host: ${REDIS_HOST:47.111.81.118}
+    port: ${REDIS_PORT:6379}
+    password: ${REDIS_PWD:uskyredis}
     #连接超时时间
     timeout: 5000
 

+ 14 - 0
eladmin-system/src/test/java/me/zhengjie/EladminSystemApplicationTests.java

@@ -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"));
+    }
 }