1.获取inputStream
#将src/main/resources/app.properties目录下的文件加载为stream
InputStream inputStream = this.getClass().getResourceAsStream("app.properties");
#将src/main/resources/config/app.properties目录下的文件加载为stream
InputStream inputStream = this.getClass().getResourceAsStream("config/app.properties");