public java.net.URL getResource(String name)获取到的路径乱码
摘要:
解决办法: String absolutePath = StaticResourceUtil.class.getResource("/").getPath();absolutePath = URLDecoder.decode(absolutePath, "utf-8");进行解码就可以了。 阅读全文
posted @ 2024-05-31 14:34 ~码铃薯~ 阅读(15) 评论(0) 推荐(0)
浙公网安备 33010602011771号