@@ -0,0 +1,698 @@
+package mingzuozhibi.action;%0A%0Aimport mingzuozhibi.persist.User;%0Aimport mingzuozhibi.support.Dao;%0Aimport org.json.JSONArray;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.web.bind.annotation.GetMapping;%0Aimport org.springframework.web.bind.annotation.RestController;%0A%0A@RestController%0Apublic class UserController extends BaseController %7B%0A%0A    @Autowired%0A    private Dao dao;%0A%0A    @GetMapping(value = %22/api/users%22, produces = CONTENT_TYPE)%0A    public String findAll() %7B%0A        JSONArray array = new JSONArray();%0A        dao.findAll(User.class).forEach(user -%3E %7B%0A            array.put(user.toJSON());%0A        %7D);%0A        return objectResult(array);%0A    %7D%0A%0A%7D%0A

add get /api/users api