且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在Spring MVC中将URL作为参数传递

更新时间:2022-11-22 22:56:20

您可以在将logsPath传递给视图之前对其进行编码,并在检索内容时对其进行解码

You could encode the logsPath before passing it on the view and decode it when retrieving content

logsPath = "C:\abc\def\ght";
logsPath = URLEncoder.encode(logsPath, "UTF-8"); // Or "ISO-8859-1"