JSP 跳转地址拼接问题,在线等!!!!!

juicy7005 2014-02-10 03:00:28
@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

对应的代码如何修改
...全文
322 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
juicy7005 2014-02-10
  • 打赏
  • 举报
回复
引用 1 楼 fangmingshijie 的回复:
/africa.html?t={category}.{country}.{index} 这样应该可以吧。
不可以
  • 打赏
  • 举报
回复
/africa.html?t={category}.{country}.{index} 这样应该可以吧。

81,092

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧