直接使用springboot发现读取页面的时候,会报错:
This application has no explicit mapping for /error
其实处理办法很简单,只需要在gradle加入以下依赖即可:
compile("org.springframework.boot:spring-boot-starter-thymeleaf")
本文介绍了解决SpringBoot应用中未定义/error映射导致的页面读取错误问题的方法。通过在Gradle文件中引入spring-boot-starter-thymeleaf依赖,可以轻松实现错误页面的自定义展示。
直接使用springboot发现读取页面的时候,会报错:
This application has no explicit mapping for /error
其实处理办法很简单,只需要在gradle加入以下依赖即可:
compile("org.springframework.boot:spring-boot-starter-thymeleaf")
813
702

被折叠的 条评论
为什么被折叠?