java - 用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);
}
解决方案
推荐阅读
- python - 如何在python中对计算器进行输入检查?
- image-processing - 如果滤波器在数字图像处理中是对称的,则执行卷积或相关将相同。为什么?
- http - 一些 Camel IN 交换标头未映射到 HTTP 标头,尽管 mapHttpMessageHeaders 和 copyHeaders 都默认为 true
- python - 在主窗口中显示一个对话框
- php - 没有 OAuth2 的 Xero API 身份验证
- python - graphviz.Source(dot_graph) UnicodeDecodeError
- excel - 我想对对 VBA 进行循环检查
- python - 将字典列表存储为 DataFrame
- ios - 无法将数据从 UIViewController 传递到 UIPageViewController 和其他视图
- java - 在服务方法上使用@Transactional,它会更新多个存储库