ソースを参照

增加MD5密码查看功能

zhouy 1 年間 前
コミット
d88d6a97e7

+ 6 - 1
pom.xml

@@ -38,7 +38,7 @@
 
 		<dependency>
 			<groupId>org.springframework.boot</groupId>
-			<artifactId>spring-boot-starter-jdbc</artifactId>
+			<artifactId>spring-boot-starter-security</artifactId>
 		</dependency>
 
 		<dependency>
@@ -46,6 +46,11 @@
 			<artifactId>spring-boot-starter-jdbc</artifactId>
 		</dependency>
 
+		<dependency>
+			<groupId>org.springframework.boot</groupId>
+			<artifactId>spring-boot-starter-security</artifactId>
+		</dependency>
+
 		<dependency>
             <groupId>org.springframework.boot</groupId>
             <artifactId>spring-boot-starter-data-jpa</artifactId>

+ 1 - 1
src/main/resources/application-prod.yml

@@ -4,7 +4,7 @@ spring:
         driverClassName: oracle.jdbc.OracleDriver
         username: HSL_PSI
         password: select!#%*(
-        url: jdbc:oracle:thin:@10.10.10.103:1521:orcl
+        url: jdbc:oracle:thin:@10.1.81.208:11756:orcl
         initialSize: 1
         maxActive: 3
         maxWait: 30000

+ 2 - 3
src/test/java/com/uas/eis/UasEisApplicationTests.java

@@ -7,12 +7,11 @@ 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.authentication.encoding.Md5PasswordEncoder;
 import org.springframework.test.context.junit4.SpringRunner;
 @RunWith(SpringRunner.class)
 @SpringBootTest(classes = {UasEisApplication.class})
 public class UasEisApplicationTests {
-	@Autowired
-	private PnsDataSyncTask pnsDataSyncTask;
    /***
 	* test 230517Vxy3rDjP5VgcNoyoknUnrHTw http://47.100.162.77:10001/esb/open/api/ISP_customerEDI/route
 	* prod 230522Sn33WtIQhgViiGGyBOwv4FOB http://106.14.251.235:10001/esb/open/api/ISP_customerEDI/route
@@ -20,7 +19,7 @@ public class UasEisApplicationTests {
 
 	@Test
 	public void Test() {
-		pnsDataSyncTask.UploadSaleData();
+		System.out.println(new Md5PasswordEncoder().encodePassword("zhongjx", "zhongjx"));
 
 	}