In annotations/src/test/testcases/org/leandreck/endpoints/generics/Endpoint.gstring contains code snippet:
@RequestMapping(value = "/boundType/{value}", method = GET, produces = MediaType.APPLICATION_JSON_VALUE)
public $boundType echoBoundType(@RequestParam $boundType value) {
return value;
}
Here {value} part of @RequestMapping corresponds to @PathVariable, not @RequestParam. Corrected version should look like this:
@RequestMapping(value = "/boundType/{value}", method = GET, produces = MediaType.APPLICATION_JSON_VALUE)
public $boundType echoBoundType(@PathVariable("value") $boundType value) {
return value;
}
Also, don't forget to change
import org.springframework.web.bind.annotation.RequestParam;
to
import org.springframework.web.bind.annotation.PathVariable;
In
annotations/src/test/testcases/org/leandreck/endpoints/generics/Endpoint.gstringcontains code snippet:Here
{value}part of@RequestMappingcorresponds to@PathVariable, not@RequestParam. Corrected version should look like this:Also, don't forget to change
to