后台应该怎样获取angularjs传的值 http.post传的
1个回答
2016-10-13
展开全部
后台用什么框架?springMVC的话
@RequestMapping(value = "/demo", method = RequestMethod.POST)
public Demo demoAdd(@RequestParam(value = "string1", required = false, defaultValue = "") String string1){
system.out.println(string1);
}
@RequestMapping(value = "/demo", method = RequestMethod.POST)
public Demo demoAdd(@RequestParam(value = "string1", required = false, defaultValue = "") String string1){
system.out.println(string1);
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询