私はコントローラーのメソッドを見つけました。このIDは何ですか:+ + ??Spring MVCリクエストマッピングハンドラメソッドの{id:。+}の意味は何ですか?
@RequestMapping(value="/index/{endpoint}/{type}/{id:.+}", method=RequestMethod.POST, consumes=kContentType, produces=kProducesType)
@ResponseBody
public String indexData(@PathVariable(value="endpoint") String endpoint, @PathVariable(value="type") String type, @PathVariable(value="id") String id, @RequestBody String body, HttpServletRequest request) {
logger.debug("In web controller for endpoint " + endpoint);
return indexController.indexData(endpoint, type, id, body, getSecurityContextProvider(request));
}
あなたが提供することができこのサービスにアクセスするために使用できるURLの例 –
"/index/foo/bar/foo.bar"が動作します。 idパス変数に "。+"正規表現がなければ、 "foo.bar"ではなくidに "foo"しか得られません – reblace
私はあなたに従うことを確信していません –