http/1.1 400:no host matches with hostname
来源:互联网 发布:淘宝卖化妆品月赚20万 编辑:程序博客网 时间:2024/06/15 19:46
说来惭愧,no host matches with hostname,就因为这个问题困惑了我好久,因为我昨天电脑上运行还是好好的,今天就出现400错误,我把电脑里的hosts文件改了,tomcat也重装了,都没解决问题,今天突然发现地址栏中有以前的地址,一看与我输入的不同,少了映射的项目名,因为我一直觉得这个地址很简单啊,没必要去看以前的,其实也没有想过去看以前的,结果纠结了好久,网上也有人遇到过这样的问题,不知道是怎么解决的 。
输入的错误地址:http://localhost:8060/userManage/userAddPageAction
实际的正确地址:http://localhost:8060/eshop/userManage/userAddPageAction
上面对比,可以发现,少了我在server.xml配置的映射名称
<Context docBase="F:\projects\eShop\WebRoot" path="/eshop"/>这是我在server.xml里配置的,访问地址的时候少了eshop。
总结:越是觉得简单,越是觉得不会出错,恰恰就是会出错的地方,因为人的定势思维觉得自己是对的,一般不会想到这个如此愚蠢的错误,也许这也是为什么测试工程师存在的原因吧。自己测自己的,不一定测得出来所有bug
0 0
- http/1.1 400:no host matches with hostname
- Unable to resolve host : No address associated with hostname
- Unable to resolve host : No address associated with hostname
- okhttp Unable to resolve host “<host-name>”: No address associated with hostname的解决办法
- Unable to resolve host “<insert URL here>” No address associated with hostname
- apache [error] (EAI 5)No address associated with hostname: Could not resolve host name
- IOException Unable to resolve host "api.linkface.cn": No address associated with hostname
- java.net.UnknownHostException: Unable to resolve host "xxx": No address associated with hostname
- 关于java.net.UnknownHostException: Unable to resolve host "xx": No address associated with hostname
- Unable to resolve host "api1.51zhenghao.cn": No address associated with hostname
- Unable to resolve host "api.51zhenghao.cn": No address associated with hostname
- no address associated with hostname
- android No address associated with hostname错误
- No mapping found for HTTP request with URI [/DZCX_Manage/host/toHostMsg.action
- ubuntu不能解析域名No address associated with hostname
- hostname: Unknown host
- WARNING: The host '$hostname' could not be looked up with resolveip.
- sgu153:Playing with matches
- Android页面布局(帧布局)
- ffmepg移植到android实现RTSP客户端-问题小记
- 代码的分支管理策略
- node.js module初步理解
- unity图片内存优化 涉及到代码进行缩放
- http/1.1 400:no host matches with hostname
- COAP介绍
- 动态内存
- Android 导入 library 工程库
- 消息传递(Messaging)
- AndroidManifest.xml 之 meta-data
- 数组循环移位
- poj1062 昂贵的聘礼(最短路变形)
- 日期计算