springmvc中进入web-inf目录下后重定向到webroot下

   由于在spring-nvc.xml文件中配置了先后缀java

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

想退出登陆返回webroot目录下,能够重定向web

    return "redirect:/index.jsp";

就能够进入webroot目录下了
spring

相关文章
相关标签/搜索