spring cannot resolve mvc view

controller会根据应用上下文中的viewResolver的路径查找视图是否存在,如果出现“cannot resolve mvc view”一般是路径配置错了

xml配置为例:

<bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver">
        <property name="prefix" value="/WEB-INF/views/"/>
        <property name="suffix" value=".jsp"/>
bean>

 

转载于:https://www.cnblogs.com/lvjianwei/p/7993337.html

你可能感兴趣的:(spring cannot resolve mvc view)