1、使用了 Controller 注解报下面的这个错误的原因是:
return 所返回的值默认去寻找 (值.html) 那个thymeleaf页面,因为这里使用了Thymeleaf,但是那个页面却不存在
2、报错信息:
org.thymeleaf.exceptions.TemplateInputException: Error resolving template [this is thymeleaf],
template might not exist or might not be accessible by any of the configured Template Resolvers
3、解决办法
1)* 只有使用RestController和ResponseBody才直接返回字符串。
2)* 如果要用Thymeleaf去跳转页面,就只能使用Controller注解,那就创建 return 所返回的值对应的 HTML页面
或者修改return 后面的值为对应的页面