2016-05-10 3 views

答えて

2

あなたが使用することができ、主に2 opions:

オプション1:あなたはこのようにリクエストを構築する必要があり

@RequestMapping("/{pathVariable}/yourUrl") 
public void yourRequestMethod(@PathVariable("pathVariable")String pathVariable){...} 

そして:

/yourValue/yourUrl 

オプション2:

@RequestMapping("/yourUrl") 
public void yourRequestMethod(@RequestParam("test")String test){...} 

そして、あなたはLD、このような要求を構築:

/yourUrl?test=yourValue 
3

これは @RequestMapping("${test.str.value}")を動作するはずですし、あなたのapplication.proprties/ymltest.str.value = /test

関連する問題