https://stackoverflow.com/questions/573679/open-resource-with-relative-path-in-java
用法: MyClass.class.getClassLoader().getResource("/config/application.properties")
【java】查找应用程序的资源
原文:https://www.cnblogs.com/helww/p/12600125.html