首页 > 解决方案 > 用spring rest ful api编码url?

问题描述

我有一个由 spring restful 编写的 api。我用邮递员测试我用参数调用这个api: 内容:60天`

当我通过下面的函数在后端捕获它时:

Result<List<T>> search(HttpServletRequest request, HttpServletResponse response,@RequestParam(name="search") String search) {
    Map<String, String[]> params = request.getParameterMap();
    return getService().resolve(params);
}

参数内容的值为: 在此处输入图像描述

我该如何解决?更新 : 这个得到

在此处输入图像描述

标签: javaspringspring-bootrestful-url

解决方案



推荐阅读