admin管理员组文章数量:1612099
The origin server did not find a current representation for the target resource or is not willing to disclose that one exists.
初学小白遇到这个问题,论坛上已经有很多解释了。这里说一个其他情况。
就是在写springmvc.xml时,配置视图解析器时两行代码写反。
<!--视图解析器对象-->
<bean id="internalResourceViewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="suffix" value=".jsp"/>
<property name="prefix" value="/WEB-INF/pages"/>
</bean>
像这样,suffix和prefix写反,由于java是一行一行读的,如果文件夹和后缀反了,也会报404。这个bug是个bug。
本文标签: ServerOriginSSMRepresentationCurrent
版权声明:本文标题:初学ssm 小白遇到The origin server did not find a current representation for the…… 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://www.elefans.com/xitong/1728629153a1166880.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论