从jar包中读取classpath下文件出错:
java.io.FileNotFoundException: class path resource [conf/sendofd.xml] cannot be resolved to absolute file path because it does not reside in the file system: jar:file:/home/wuhui/component/da
ta/data-query-3.0.1.jar!/BOOT-INF/classes!/conf/sendofd.xml
解决办法:
Resource resource = new ClassPathResource("/" + relativePath);
InputStream fileInputStream = null;
try {
fileInputStream = resource.getInputStream();
} catch (IOException e) {
e.printStackTrace();
}
最新评论
网飞没问题, 迪士尼+有解决方案么?
pp助手是安卓手机用的,根本下载用不来苹果
已解决
这样的话数据库里的结构为{"attachment":{"content":"xxx"}}, 要怎么才能变成{"content":"xxx"},从而使结构保持一致?
赞! make test不过的坑都写到的,谢谢楼主~
谢谢你
用了root用户还是一直502是怎么回事呢
student id 是空的