Forráskód Böngészése

Merge branch 'branch-nt-1.0.0' of https://git.flowbb.cn/RK-Dev/fqgz-server into branch-nt-1.0.0

everydatestudy 3 éve
szülő
commit
60813c7b64

+ 1 - 1
eladmin-sign/src/main/java/me/zhengjie/sign/connector/HttpConnector.java

@@ -54,7 +54,7 @@ public class HttpConnector implements InitializingBean {
 
     @Override
     public void afterPropertiesSet() throws Exception {
-        Path temp = Paths.get(HttpConnector.class.getClassLoader().getResource("").getPath().concat(keyStorePath));
+        Path temp = Paths.get(new File(HttpConnector.class.getClassLoader().getResource("").getPath().concat(keyStorePath)).getAbsolutePath());
         Files.copy(HttpClient.class.getClassLoader().getResourceAsStream(keyStorePath), temp, StandardCopyOption.REPLACE_EXISTING);
         keyStorePath = temp.toFile().getPath();
         trustStorePath = keyStorePath;