首页 > Jfinal Resty-router框架中,如何获取POST请求中的参数.

Jfinal Resty-router框架中,如何获取POST请求中的参数.

Jfinal Resty-router框架中,如何获取POST请求中的参数?

初次使用resty框架,想通过post方式获取传递过来的参数,但是没有相关的文档给予帮助,总是无法获取到,求过来人指点一二~跪拜!

code list1:
很简单的监听post请求的函数~

    @POST("/post")
    public String post(Map<String,String> args) {
        String a = this.getParam("a");
        System.out.println(args);
        System.out.println(a);
        return "ok";
    }

截图1:postman 模拟 post请求,传递参数 a

截图2:后台输出的参数值都是 null

如何才能获取到post传过来的参数呢?

【热门文章】
【热门文章】