java 路径中空格问题

url转换为uri,如:

Thread.currentThread().getClass().getResource("/").toURI().getPath()


从url中得到path时空格会显示为%20

你可能感兴趣的:(java,url,Path)