Whitelabel Error Page

Whitelabel Error Page

This application has no explicit mapping for /error, so you are seeing this as a fallback.

当我用@RequestMapping访问templates里面的html页面时,发生这错误。

原因是缺少依赖:

		
			org.springframework.boot
			spring-boot-starter-thymeleaf
		

 

你可能感兴趣的:(Spring)