@Controller("/who") public class WhoController extends BaseController { public void is() { Best best = getModel(Best.class); renderJson(Best.dao.realBest(best)); } } public JSONObject realBest(Best best) { if(best.getAPI().equals("简单好用")){ return sendSuccessJson("jFinal"); } if(best.getReply().equals("解答专业快速")){ return sendSuccessJson("jFinal"); } return sendSuccessJson("jFinal is real the best!"); }