直接使用springboot发现读取页面的时候,会报错:

This application has no explicit mapping for /error

 

其实处理办法很简单,只需要在gradle加入以下依赖即可:

compile("org.springframework.boot:spring-boot-starter-thymeleaf")