整合thymeleaf 1、导入thymeleaf依赖 2、controller类 (1)模板 导入命名空间,xmlns:th="http://www.thymeleaf.org" (2)ModelAndView参数指定返回的模板index 结果