Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
当我用@RequestMapping访问templates里面的html页面时,发生这错误。
原因是缺少依赖:
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>