The origin server did not find a current representation for the target resource or is not willing to

项目本来是正常的,在重新开机后出现The origin server did not find a current representation for the target resource or is not willing to...

解决办法:

1把tomcat里对应的项目remove掉,然后重新添加就可以正常运行了。

2如果修改了项目名称,但是WebRoot没有修改,也会报这个错误

3浏览器中网页的地址输入错误

4配置文件有错误

eclipse中更改WebRoot,右击项目properties>Web Project Settings>Context root
myeclipse10中更改webroot,右击项目properties>MyEclipse>Web>Web Context-root
myeclipse2017中更改webroot,右击项目properties>Deployment>Deployment Assembly>Web Context Root

你可能感兴趣的:(JavaWeb)