SpringMvc遇见404刁钻的问题The origin server did not find a current representation for the target resource

SpringMvc环境搭建遇见404刁钻的问题 The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.怎么解决?
遇见这个问题困惑了我一整天,检查了所有可能出现的地方。
SpringMvc遇见404刁钻的问题The origin server did not find a current representation for the target resource_第1张图片
一开始怀疑web.xml映射路径配置错了
SpringMvc遇见404刁钻的问题The origin server did not find a current representation for the target resource_第2张图片
换了好几种方式 还是没解决,在后来检查了一下Tomcat配置的上下文。
SpringMvc遇见404刁钻的问题The origin server did not find a current representation for the target resource_第3张图片
尝试改了几次还是没解决。整整纠结了一天。网上的改配置文件版本了等方法试了个遍,依然没有卵用。最后发现原来idea在编译的时候没有找到WEB-INF下的lib文件(运行所需要的的jar存放地)。
SpringMvc遇见404刁钻的问题The origin server did not find a current representation for the target resource_第4张图片

后来添加上去。完美解决。
步骤如下file----Project Struture----Artifacts选中工程添加
SpringMvc遇见404刁钻的问题The origin server did not find a current representation for the target resource_第5张图片
SpringMvc遇见404刁钻的问题The origin server did not find a current representation for the target resource_第6张图片
SpringMvc遇见404刁钻的问题The origin server did not find a current representation for the target resource_第7张图片
(终于解决了,小弟激动之余写了第一篇博客,写的不好还望大神们多多指教)

你可能感兴趣的:(SpringMvc遇见404刁钻的问题The origin server did not find a current representation for the target resource)