67,512
社区成员
发帖
与我相关
我的任务
分享
@RequestMapping("/images/{type}/{fileCode}.{suffix}")
public void showImage(@PathVariable String type, @PathVariable String fileCode, @PathVariable String suffix, HttpServletRequest request, HttpServletResponse response) {}
例如以上代码,当请求地址/images/test1/a.jpg,type就等于test1,fileCode=a,suffix=jpg