springboot项目后端接收到特殊字符传递参数含义

Meaning of parameters are transferred when backend receive the special character in springboot project

我在将参数(“<”、“>”、“&”)传输到“<”、“>”、“&”时遇到了一些问题。有没有解决方案可以确保参数不被传输,因为我想恢复我数据库中的一些特殊字符。

This is my frontend code:

我通过 PubParams 接收参数This is my backend code:

This is my debugging result

如您所见,我收到了一个转义字符 ( < >)。我的原始参数是 < >.

提前致谢!

它似乎正在 URL 编码。

您可以在收到的内容上使用 URLDecoder.decode()