👍 增加NPE防御
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user