@Ok("raw")
    @At
    public String apitest() {
        List<User> users = userService.list();
        log.info("users=" + Json.toJson(users));
        User haoqoo = userService.add("haoqoo", 19);
        User wendal = userService.add("wendal", 28);
        users = userService.list();
        log.info("users=" + Json.toJson(users));
        userService.delete(haoqoo.getId());
        userService.delete(wendal.getId());
        users = userService.list();
        log.info("users=" + Json.toJson(users));
        return "done";
    }
@ Ok ( "raw" ) @ At public String apitest ( ) { List < User > users = userService . list ( ) ; log . info ( "users=" + Json . toJson ( users ) ) ; User haoqoo = userService . add ( "haoqoo" , 19 ) ; User wendal = userService . add ( "wendal" , 28 ) ; users = userService . list ( ) ; log . info ( "users=" + Json . toJson ( users ) ) ; userService . delete ( haoqoo . getId ( ) ) ; userService . delete ( wendal . getId ( ) ) ; users = userService . list ( ) ; log . info ( "users=" + Json . toJson ( users ) ) ; return "done" ; }
这是演示api调用的入口,会顺序调用一堆请求,请关注日志