取文件路径时,当路径中有空格时,返回的是encode字符串的路径,这样导致找不到相对应的路径

Solution:   

filePath=this.getClass().getClassLoader().getResource("/").toURI().getPath()+xmlPath;

猜你喜欢

转载自blog.csdn.net/kielin/article/details/75888688
今日推荐