在学springboot的时候,发现一个bug。在controller返回到templates模板下的页面dashboard.html时,在页面上报了There was an unexpected error (type=Internal Server Error, status=500)。而在IDEA中发现报的错误为:
org.thymeleaf.exceptions.TemplateInputException: Error resolving template [dashboard], template might not exist or might not be accessible by any of the configured Template Resolvers
controller层的代码如下:
@Controller
public class LoginController {
// @DeleteMapping
// @PutMapping
// @GetMapping
//@RequestMapping(value = "/user/login",meth