在springmvc中 @RequestMapping(value={"", "/"})是什么意思?

这个意思是说请求路径  可以为空或者/
举个例子:比如百度知道个人中心 访问路径是
http://zhidao.baidu.com/ihome,当然也可以通过 http://zhidao.baidu.com/ihome/来访问。
再举个例子 比如你在
在springmvc中 配置 @RequestMapping(value={"test", "test1"})
如果你项目端口是8080;然后你要访问这个方法,

你可以通过 http://localhost:8080/test或者http://localhost:8080/test1来访问
posted on 2016-08-04 15:16  临界  阅读(477)  评论(0编辑  收藏  举报