spring mvc登陆页跳转到首页是个空白页面
<mvc:resources mapping="/images/**" location="/images/"/>
<mvc:resources mapping="/extjs-4.1.1/**" location="/extjs-4.1.1/"/>
<mvc:resources mapping="/js/**" location="/js/"/>
<mvc:resources mapping="/css/**" location="/css/"/>
<mvc:resources mapping="/app/**" location="/app/"/>
<bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="viewClass" value="org.springframework.web.servlet.view.JstlView" />
<property name="prefix" value="/WEB-INF/jsp/" />
<property name="suffix" value=".jsp" />
</bean>
@RequestMapping(value="/checkLogin", method=RequestMethod.POST)
public String checkLogin(String userName, String password)
{
return "main";
}
<mvc:resources mapping="/extjs-4.1.1/**" location="/extjs-4.1.1/"/>
<mvc:resources mapping="/js/**" location="/js/"/>
<mvc:resources mapping="/css/**" location="/css/"/>
<mvc:resources mapping="/app/**" location="/app/"/>
<bean id="viewResolver" class="org.springframework.web.servlet.view.InternalResourceViewResolver">
<property name="viewClass" value="org.springframework.web.servlet.view.JstlView" />
<property name="prefix" value="/WEB-INF/jsp/" />
<property name="suffix" value=".jsp" />
</bean>
@RequestMapping(value="/checkLogin", method=RequestMethod.POST)
public String checkLogin(String userName, String password)
{
return "main";
}
...全文
相关推荐
SSM空白框架
这是整合之后的空白的SSM开发框架
空白spring+hibernate+struts2项目
本资源是一个空白的spring+hibernate+struts2项目
java三大框架ssh项目空白模板
java三大框架ssh项目空白模板:环境全部搭建好了,都是测试成功的!只需要改动一下连接数据库的用户名和密码就可以了!!
Spring MVC Annotation验证的方法
主要介绍了Spring MVC Annotation验证的方法,小编觉得挺不错的,现在分享给大家,也给大家做个参考。一起跟随小编过来看看吧
空白Spring+SpringMvc+Mybatis配Maven环境
空白Spring+SpringMvc+Mybatis配Maven环境,一个空的环境需要根据自己功能DIY


Web 开发
