SpringBoot+thymeleaf
实现Springboot和thymeleaf的整合。1.使用@Controller注解,在对应的方法上,视图解析器可以解析return的jsp,html页面,并且跳转到相应页面2.@RestController注解,相当于@Controller+@ResponseBody两个注解的结合,返回json数据不需要在方法前面加@ResponseBody注解了,但使用@RestController这个注解,就不能返回jsp,html页面,视图解析器无法解析jsp,html页面参考:https://www.cnblogs.com/shuaifing/p/8119664.html
下载地址
用户评论