初学 Spring boot 报错 Whitelabel Error Page 404
2018-06-19 17:37
921 查看
按照教程,写了个最简单的 HelloWorld,尼玛报错 -->Whitelabel Error Page 404.
网上99%都是项目结构不对,说什么 Application放在父级 package。然而我这个这么简单居然也报404。
注意: 前端模版用templates的话,必须引入 thymeleaf依赖。
<dependency> <groupId>org.springframework.boot</groupId> <artifactId>spring-boot-starter-thymeleaf</artifactId> </dependency>
后来找到 spring boot初学hello world访问templates报Whitelabel Error Page 404 ,这位小哥的是 maven 引入出错,然后我想起来前两天同事刚把 maven 仓库的密码改掉。尼玛。。。搞了大半天。
解决方法就是:(针对我的情况)
- 首先改掉 maven 仓库密码。
- 再把项目pom.xml中配置的jar注释掉刷新,然后再去掉注释再右键maven->Reimport,即可以重新构建项目!
相关文章推荐
- 初学 Spring boot 报错 Whitelabel Error Page 404
- 初学Spring Boot遇到Whitelabel Error Page的解决办法
- Spring Boot 第一个HelloWorld程序 whitelabel Error Page
- Spring Boot自定义错误页面,Whitelabel Error Page处理方式
- Spring boot JSP访问页面显示Whitelabel Error Page
- java处理springboot whitelabel error page
- spring-boot jsp whitelabel error page问题解决
- SpringBoot 不显示Whitelabel Error Page
- SpringBoot接口服务处理Whitelabel Error Page
- Spring-Boot "Whitelabel Error Page" 解决方法总结
- spring boot: Whitelabel Error Page的解决方案
- 搭建Spring Boot框架 Whitelabel Error Page This application has no explicit mapping for /error, so you ar
- spring boot: Whitelabel Error Page的解决方案
- springboot + tomcat + jsp 报Whitelabel Error Page解决方法
- spring-boot集成 jsp报whitelabel error page的问题解决
- spring boot2.0 创建 及 mvc视图映射 jsp时 Whitelabel Error Page(一)
- Spring Boot : Whitelabel Error Page解决方案
- Spring boot启动提示Whitelabel Error Page 401 spring需要授权登录
- 《Springboot极简教程》问题解决:Springboot启动报错 Whitelabel Error Page: This application has no explicit mapping for
- SpringBoot 访问出错Whitelabel Error Page