文件路径读取

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_20120669/article/details/72772345

通过当前类的路径读取

InputStream in = PropTests.class.getResourceAsStream("/config/application.properties");

猜你喜欢

转载自blog.csdn.net/qq_20120669/article/details/72772345