spring boot无法读取html、jsp页面

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

This application has no explicit mapping for /error

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

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

猜你喜欢

转载自jameskaron.iteye.com/blog/2420387