情况如下图:
网上的解决方法都尝试了一遍
SpringBoot的配置和ModelAndView的使用都检查了一遍都没有问题。但始终在报如下的错误
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
解决方法:
最后发现spring boot 2.2.0开始freemarker模板默认扩展名改为ftlh
所以只需将 .ftl后缀 改成 .ftlh 即可
本文地址:https://blog.csdn.net/Lujiahao98689/article/details/109636401
您可能感兴趣的文章:
- 创建Gradle工程出现Could not install Gradle distribution from 'https://services.gradle.org/distributions/gradleXX'.问题解决
- spring boot 错误:Check your ViewResolver setup
- java实现判断一个整数是几位数,并按照逆序输出
- Please, configure Web Facet first!idea报这错的解决办法!!
- SpringBoot 2.0 报错: Failed to configure a DataSource: 'url' attribute is not specified and no embe
- [异常处理1]Error occurred during initialization of boot layer
- 解决Invalid character found in the request target. The valid characters are defined in RFC 7230 and RFC 问题
如您对本文有疑问或者有任何想说的,请点击进行留言回复,万千网友为您解惑!
网友评论