springboot访问页面报错:This application has no explicit mapping for /error, so you are seeing this as a fa
来源:互联网 发布:mac层随机竞争算法 编辑:程序博客网 时间:2024/05/18 20:32
今天闲来无事,自己搭建一个springboot做个小例子,但在访问页面时报错了:This application has no explicit mapping for /error.....
找了好久,才发现原因,Application启动类放的位置不对要将Application放在最外层,也就是要包含所有子包。
看图说话:
一开始是这样的:
改过之后是这样的:
总结:比如你的groupId是com.google,子包就是所谓的com.google.xxx,所以要将Application类要放在com.google包下。springboot会自动加载启动类所在包下及其子包下的所有组件.
阅读全文
0 0
- springboot访问页面报错:This application has no explicit mapping for /error, so you are seeing this as a fa
- Spring-boot 报错This application has no explicit mapping for /error, so you are seeing this as a fallb
- This application has no explicit mapping for /error, so you are seeing this as a fallback.
- This application has no explicit mapping for /error, so you are seeing this as a fallback
- This application has no explicit mapping for /error, so you are seeing this as a fallback
- spring-boot启动报错:This application has no explicit mapping for /error, so you are seeing this as a fal
- 异常:This application has no explicit mapping for /error, so you are seeing this as a fallback.
- SpringBoot启动报错【This application has no explicit mapping for /error.....】
- 《Springboot极简教程》问题解决:Springboot启动报错 Whitelabel Error Page: This application has no explicit mapping for
- spring-boot启动报错【This application has no explicit mapping for /error.....】
- spring-boot启动报错【This application has no explicit mapping for /error.....】
- spring-boot启动报错【This application has no explicit mapping for /error.....】
- spring-boot启动报错【This application has no explicit mapping for /error.....】
- spring boot报错:this application has no explicit mapping for /error...
- spring-boot启动报错【This application has no explicit mapping for /error.....】
- spring-boot启动报错【This application has no explicit mapping for /error.....】
- Spring Boot报错:This application has no explicit mapping for /error......
- Spring Boot报错:This application has no explicit mapping ... a fallback
- (M)Backtracking:39. Combination Sum
- Python 入门知识
- Python入门(2)
- 微信小程序 —— 自定义带进度条的音频播放控件audio
- 3-8 跳跃步数
- springboot访问页面报错:This application has no explicit mapping for /error, so you are seeing this as a fa
- 关于缘起
- Android微信之简单文本分享(集成官方SDK-Android Studio)
- JNI入门,使用NDK编写自己的SO库
- 初识python
- 音悦台免积分下载器
- [codevs2192][bzoj1922]大陆争霸
- C# foreach 中获取索引index方法的补充
- 关于用Java实现发送邮件(部分代码参考网络来源)