我正在尝试加载一个位于Jenkins插件的src/main/resources文件夹中的资源文件。但是它总是给我一个FileNotFoundException异常。请问有人能解释一下如何让它工作吗?
异常信息:
异常信息:
java.io.FileNotFoundException: file:/var/lib/jenkins/plugins/Report/WEB -INF/lib/Report.jar!/properties.txt (No such file or directory)
getClass().getResourcesAsStream("/...")
来代替。 - khmarbaise