使用springboot+thymeleaf时访问HTML界面失败,只返回字符串 可能是注解的问题: 去掉@RestController注解换成@Controller 注解 @RestController = @Controller + @ResponseBody.此时会返回字符串.