0

所以假设我有这样的控制器代码 -

@RequestMapping(value = "/graph/{graphName}/index/{indexName}/")
@ResponseBody
public ResponseEntity<String> getResponse(
        @PathVariable String graphName,
        @PathVariable String indexName,
        @RequestParam(value = "searchTerms") List<String> searchTerms) {

    System.out.println("IN CONTROLLER");
    System.out.println(searchTerms);

我点击的网址看起来像这样

graph/graph1/index/index1/?searchTerms=123+456

当我查看搜索词时,我看到 [123 456] - 我如何才能得到 [123+456]?

4

0 回答 0