Bladeren bron

增加MD5密码查看功能

zhouy 1 jaar geleden
bovenliggende
commit
d88d6a97e7
3 gewijzigde bestanden met toevoegingen van 9 en 5 verwijderingen
  1. 6 1
      pom.xml
  2. 1 1
      src/main/resources/application-prod.yml
  3. 2 3
      src/test/java/com/uas/eis/UasEisApplicationTests.java

+ 6 - 1
pom.xml

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

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

@@ -4,7 +4,7 @@ spring:
         driverClassName: oracle.jdbc.OracleDriver
         driverClassName: oracle.jdbc.OracleDriver
         username: HSL_PSI
         username: HSL_PSI
         password: select!#%*(
         password: select!#%*(
-        url: jdbc:oracle:thin:@10.10.10.103:1521:orcl
+        url: jdbc:oracle:thin:@10.1.81.208:11756:orcl
         initialSize: 1
         initialSize: 1
         maxActive: 3
         maxActive: 3
         maxWait: 30000
         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.junit.runner.RunWith;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.boot.test.context.SpringBootTest;
 import org.springframework.boot.test.context.SpringBootTest;
+import org.springframework.security.authentication.encoding.Md5PasswordEncoder;
 import org.springframework.test.context.junit4.SpringRunner;
 import org.springframework.test.context.junit4.SpringRunner;
 @RunWith(SpringRunner.class)
 @RunWith(SpringRunner.class)
 @SpringBootTest(classes = {UasEisApplication.class})
 @SpringBootTest(classes = {UasEisApplication.class})
 public class UasEisApplicationTests {
 public class UasEisApplicationTests {
-	@Autowired
-	private PnsDataSyncTask pnsDataSyncTask;
    /***
    /***
 	* test 230517Vxy3rDjP5VgcNoyoknUnrHTw http://47.100.162.77:10001/esb/open/api/ISP_customerEDI/route
 	* 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
 	* prod 230522Sn33WtIQhgViiGGyBOwv4FOB http://106.14.251.235:10001/esb/open/api/ISP_customerEDI/route
@@ -20,7 +19,7 @@ public class UasEisApplicationTests {
 
 
 	@Test
 	@Test
 	public void Test() {
 	public void Test() {
-		pnsDataSyncTask.UploadSaleData();
+		System.out.println(new Md5PasswordEncoder().encodePassword("zhongjx", "zhongjx"));
 
 
 	}
 	}