日期:2014-05-17  浏览次数:20892 次

JSP 跳转地址拼接问题,在线等!!!!!
@RequestMapping(value="/africa-{category}-{country}-{index}.html")
public String afInfoList(HttpServletRequest request,
@PathVariable("category") String category,
@PathVariable("country") String country,
@PathVariable("index") int index) throws Exception 


对应的链接地址为:http://localhost:8080/project/africa-aa-un-1.html


请问如果链接地址需要修改为:http://localhost:8080/project/africa.html?t=aa.un.1

对应的代码如何修改
------解决方案--------------------
/africa.html?t={category}.{country}.{index}

这样应该可以吧。