Maven-->Update Project 后会出以下问题
The origin server did not find a current representation for the target resource or is not willing to
原因:update project 后项目 travel-web 的 properties --> web project settings --> Context root由 travel-web变为 travel,变成了父工程的名字,需要改回到 travel-web
解决办法:
1把tomcat里对应的项目remove掉,然后重新添加就可以正常运行了。
2如果修改了项目名称,但是WebRoot没有修改,也会报这个错误
3浏览器中网页的地址输入错误
4配置文件有错误
第2种情况的解决办法:
eclipse中更改WebRoot,右击项目properties>Web Project Settings>Context root (travel改为travel-web)
myeclipse2017中更改webroot,右击项目properties>Deployment>Deployment Assembly>Web Context Root