springmvc项目
js代码:
$.post('index/nextGroupSearch',{},function(){})
controller代码:
@RequestMapping("/index/nextGroupSearch")
public String xxxx(){}
前台出发post提交,浏览器报404错误,解析的url为
http://xxxxx:8080/index/nextGroupSearch
从上面的url看,明显是缺少项目名,此处存在疑问,post请求的url前面都必须手动添加项目名吗