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