Whitelabel Error Page
来源:互联网 发布:安卓底部导航栏源码 编辑:程序博客网 时间:2024/05/21 15:21
Whitelabel Error Page
This application has no explicit mapping for /error, so you are seeing this as a fallback.
Wed Aug 09 11:02:44 CST 2017
There was an unexpected error (type=Not Found, status=404).
No message available
解析:404错误是由于访问路径不正确导致的。
源码查看:
package org.sang;import org.springframework.boot.SpringApplication;import org.springframework.boot.autoconfigure.SpringBootApplication;import org.springframework.web.bind.annotation.RequestMapping;import org.springframework.web.bind.annotation.RestController;@RestController@SpringBootApplicationpublic class TestSpringbootApplication { public static void main(String[] args) { SpringApplication.run(TestSpringbootApplication.class, args); } @RequestMapping(value="/aaa",produces="text/plain;charset=UTF-8") String sayHello(){ return "hello world"; }}
properties配置如下:
正确的访问形式: localhost:8081/helloboot/aaa
访问路径组织: localhost:server.port(8081)/server.context-path(/helloboot)/RequestMapping(value=”/aaa”,)
阅读全文
0 0
- 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
- SpringBoot接口服务处理Whitelabel Error Page
- SpringBoot报错Whitelabel Error Page
- spring boot: Whitelabel Error Page的解决方案
- java处理springboot whitelabel error page
- springboot异常之Whitelabel Error Page解决办法
- spring boot: Whitelabel Error Page的解决方案
- SpringBoot爬坑记之Whitelabel Error Page
- SpringBoot 不显示Whitelabel Error Page
- SpringBoot接口服务处理Whitelabel Error Page
- HDU
- Python:递归输出斐波那契数列
- java 正则表达式隐藏手机号中间四位
- 记录week3
- 虚拟币开发专题(山寨币现在都有什么矿池在支持)
- Whitelabel Error Page
- Caffe学习:pycaffe利用caffemodel进行分类=>裁剪图片
- 【备忘】大型SpringMVC,Mybatis,Redis,Solr,Nginx,SSM分布式电...
- 30分钟掌握ES6/ES2015核心内容(上)
- 一个Log系统,客户端运行起来,排除那些可以输出(编辑器文件)
- 修改Android源码5.0开机横屏
- 树状数组学习总结
- python学习六(类、不定长参)
- python 之 pandas 详解