获取 spring boot 执行时的所在目录
ApplicationHome home = new ApplicationHome(MyMainSpringBootApplication.class);
home.getDir(); // returns the folder where the jar is. This is what I wanted.
home.getSource(); // returns the jar absolute path.
How to get spring boot application jar parent folder path dynamically?