我正在尝试使用Spring的@RequestMapping注解为值属性创建映射URL,如下所示:
/educationDistrict/308/action/resetAddressesForYear/1
还有这个
/educationDistrict/308/action/resetAddressesForYear
我需要这个
@RequestMapping(value = "/{repository}/{id}/action/{methodName:[A-z]*}{v:.*}", method = RequestMethod.POST)
但是第一个URL不匹配。
由于Spring HATEOAS,我不能使用多个值。 https://github.com/spring-projects/spring-hateoas/issues/186
Spring 4.1.5