SpringBoot出错: Whitelabel Error Page
2019-01-28 09:23
555 查看
1.解决springBoot无法返回视图问题。
[code]@Controller public class helloController { @RequestMapping("/") public String sayHello() { System.out.print("访问index"); return "login"; } }
出现问题:
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Mon Jan 28 09:19:35 CST 2019
There was an unexpected error (type=Not Found, status=404).
No message available
解决:
加入依赖
[code] <dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> </dependency>
注意:加入依赖后要注意pom.xml是否有红色下划线,若是有红色下划线,注释掉重新加入依赖。(我就是栽在这儿)。
相关文章推荐
- SpringBoot 访问出错Whitelabel Error Page
- spring boot: Whitelabel Error Page的解决方案
- Spring-Boot "Whitelabel Error Page" 解决方法总结
- Spring Boot Whitelabel Error Page解决办法
- Spring boot JSP访问页面显示Whitelabel Error Page
- Spring Boot Whitelabel Error Page 问题解决
- spring boot2.0 创建 及 mvc视图映射 jsp时 Whitelabel Error Page(一)
- 初学Spring Boot遇到Whitelabel Error Page的解决办法
- Spring Boot自定义错误页面,Whitelabel Error Page处理方式
- 《Springboot极简教程》问题解决:Springboot启动报错 Whitelabel Error Page: This application has no explicit mapping for(转)
- spring-boot jsp whitelabel error page问题解决
- Spring Boot自定义错误页面,Whitelabel Error Page处理方式
- SpringBoot 不显示Whitelabel Error Page
- spring-boot集成 jsp报whitelabel error page的问题解决
- springboot,404,Whitelabel Error Page,HTTP Status 404 – Not Found
- springboot启动报错:whitelabel error page
- spring-boot Whitelabel Error Page
- 搭建Spring Boot框架 Whitelabel Error Page This application has no explicit mapping for /error, so you ar
- springboot常见错误——Whitelabel Error Page
- Spring Boot : Whitelabel Error Page解决方案