👍 增加NPE防御

This commit is contained in:
2022-12-07 10:38:29 +08:00
parent d84528ee14
commit baedf074be
2 changed files with 16 additions and 15 deletions
@@ -16,16 +16,6 @@ import java.io.File;
public class YudaoServerApplication {
public static void main(String[] args) {
ApplicationHome home = new ApplicationHome(YudaoServerApplication.class);
File jarFile = home.getSource();
String dirPath = jarFile.getParentFile().toString();
String filePath = dirPath + File.separator + ".dubbo";
System.out.println(filePath);
System.setProperty("dubbo.meta.cache.filePath", filePath);
System.setProperty("dubbo.mapping.cache.filePath",filePath);
SpringApplication.run(YudaoServerApplication.class, args);
}