Support regex expression for @PathVariable (#577)

Fix gh-576
This commit is contained in:
Yanming Zhou
2021-07-27 17:54:47 +08:00
committed by GitHub
parent 3322f95fe4
commit a3704f0614
3 changed files with 19 additions and 1 deletions

View File

@@ -52,6 +52,9 @@ public interface StoreClient {
@RequestMapping(method = RequestMethod.POST, value = "/stores/{storeId}", consumes = "application/json")
Store update(@PathVariable("storeId") Long storeId, Store store);
@RequestMapping(method = RequestMethod.DELETE, value = "/stores/{storeId:\\d+}")
void delete(@PathVariable Long storeId);
}
----