视图解析,请求Controller返回的视图类型: @Controller @RequestMapping("/test") public class TestController { //正常返回ModelAndView @RequestMapping("/modelAndView") public ModelAndView retModelAndView(){ ModelAndView mv = new ModelAndView("hello"…
一.创建一个springBoot个项目 操作详情参考:1.SpringBoo之Helloword 快速搭建一个web项目 二.编写实体类 /** * Created by CR7 on 2017-8-18 返回Json数据实体类 */ public class User { private int id; private String username; private String password; public String getPassword() { return password;…