|
@@ -56,18 +56,15 @@ public class ModelingApplication implements CommandLineRunner {
|
|
|
@Override
|
|
|
public void run(String... args) throws Exception {
|
|
|
|
|
|
+ String path = System.getProperty("java.class.path");
|
|
|
+ System.out.println(path);
|
|
|
+
|
|
|
log.info("fYunFileService.isPresent():{}", fYunFileService.isPresent());
|
|
|
if(fYunFileService.isPresent()){
|
|
|
//更新弹性伸缩jar包
|
|
|
- boolean lock = redisLockUtil.lock("uploadModelingJar", 300);
|
|
|
- if(lock){
|
|
|
-// fYunFileService.get().uploadFile()
|
|
|
- ProtectionDomain domain = Main.class.getProtectionDomain();
|
|
|
- CodeSource codeSource = domain.getCodeSource();
|
|
|
- URL location = codeSource.getLocation();
|
|
|
- String jarPath = location.getPath();
|
|
|
- System.out.println("Jar file path: " + jarPath);
|
|
|
- }
|
|
|
+// boolean lock = redisLockUtil.lock("uploadModelingJar", 300);
|
|
|
+// if(lock){
|
|
|
+// }
|
|
|
}
|
|
|
|
|
|
}
|