Springboot 入门级报错Whitelabel Error Page This application
来源:互联网 发布:linux关机 编辑:程序博客网 时间:2024/05/20 22:04
Spring boot 请求报错如下:
springboot 入门级错误
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Tue Jul 25 16:07:38 CST 2017
There was an unexpected error (type=Not Found, status=404).
No message available
报错原因:Application启动类放的位置不对
解决方案:
要将Application放在最外层,也就是要包含所有子包。
比如你的groupId是top.lrshuai.demo,子包就是所谓的top.lrshuai.demo.xxx,所以要将 Application类要放在top.lrshuai.demo包下。
springboot会自动加载启动类所在包下及其子包下的所有组件.
正文到此结束,谢谢观看,有用点个赞呗。
阅读全文
0 0
- Springboot 入门级报错Whitelabel Error Page This application
- 《Springboot极简教程》问题解决:Springboot启动报错 Whitelabel Error Page: This application has no explicit mapping for
- SpringBoot接口服务处理Whitelabel Error Page
- SpringBoot报错Whitelabel Error Page
- java处理springboot whitelabel error page
- springboot异常之Whitelabel Error Page解决办法
- SpringBoot爬坑记之Whitelabel Error Page
- SpringBoot 不显示Whitelabel Error Page
- SpringBoot接口服务处理Whitelabel Error Page
- SpringBoot常见错误——Whitelabel Error Page
- Whitelabel error page问题
- Whitelabel Error Page
- Whitelabel Error Page
- Whitelabel Error Page
- Whitelabel Error Page
- 笔记--Whitelabel Error Page
- Whitelabel Error Page异常
- 处理Whitelabel Error Page
- redis(2)——redis的数据结构
- BGP笔记-3
- 数据处理——One-Hot Encoding
- bzoj 2561: 最小生成树
- 交换机堆叠技术
- Springboot 入门级报错Whitelabel Error Page This application
- 【leetcode】537. Complex Number Multiplication(Python & C++)
- 文件下载测试的测试点
- Linux Shell 脚本编程(7)—文本过滤(find命令)
- JS理解参数
- 树莓派3静态IP配置
- 【LeetCode】C# 88、Merge Sorted Array
- BGP笔记-4
- 匿名内部类----概述