Spring加载jar包中的文件

在开发中,发现spring使用ResourceUtils.getFile()的方式没法获取jar包中的文件,报cannot be resolved to absolute file path because it does not reside in the file system: jar:file的错误。 改用new ClassPathResource(keyPath).getInputStr
相关文章
相关标签/搜索