【发布时间】:2011-06-27 10:01:15
【问题描述】:
我有以下方法:
@RequestMapping(value = "/path/to/{iconId}", params="size={iconSize}", method = RequestMethod.GET)
public void webletIconData(@PathVariable String iconId, @PathVariable String iconSize, HttpServletResponse response) throws IOException {
// Implementation here
}
我知道如何使用 @PathVariable 从 RequestMapping 传递变量“webletId”,但是如何从参数中引用变量“iconSize”?
非常感谢。
【问题讨论】:
标签: java spring spring-mvc servlets request-mapping