ajax ---> controller

前端之家收集整理的这篇文章主要介绍了ajax ---> controller前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

AJAX:


 $.ajax({
                    type:"post",url:'http://192.168.1.129:1029/a/api/v1/queryFake/list',data:GetqueryString("code")
                  })


controller:

@Controller
@RequestMapping(value = "${adminPath}/api/v1")
public class ApiQueryFakeController extends BaseController {
 
    @SuppressWarnings("static-access")
    @RequestMapping(value = "/queryFake/list",method = RequestMethod.POST)
    @ResponseBody
    public String list(
             @RequestBody String code) throws UnknownHostException {

猜你在找的Ajax相关文章