标签:
http://localhost:8080/shiro_05/user/login.action
认证之后应该跳转到上一个请求的地址,但是Shiro却跳转到了:
http://localhost:8080/shiro_05/user/js/eqmt.js
此文老猫原创,转载请加本文连接:http://blog.csdn.net/nthack5730/article/details/51132560
更多有关老猫的文章:http://blog.csdn.net/nthack5730
<bean id="shiroFilter" class="org.apache.shiro.spring.web.ShiroFilterFactoryBean">
....
</bean>
添加一下参数:
<property name="successUrl" value="/user/list.action" />
http://localhost:8080/shiro_01/user/
/user/** = authc
http://localhost:8080/shiro_01/user/
http://localhost:8080/shiro_01/user/***.***
http://localhost:8080/shiro_01/user/js/eqmt.js
此文老猫原创,转载请加本文连接:http://blog.csdn.net/nthack5730/article/details/51132560
更多有关老猫的文章:http://blog.csdn.net/nthack5730
http://localhost:8080/shiro_01/*******.***
<!-- 公共样式文件引入 -->
<jsp:include page="Template/css.jsp"></jsp:include>
<!-- 自带js -->
<script src="js/eqmt.js"></script>
<!-- 自建样式表 -->
<link href="${pageContext.request.contextPath}/css/eqmt.css" rel="stylesheet" type="text/css">
<link href="${pageContext.request.contextPath}/css/login.css" rel="stylesheet" type="text/css">
<script src="js/eqmt.js"></script>
<script src="${pageContext.request.contextPath}/js/eqmt.js"></script>
此文老猫原创,转载请加本文连接:http://blog.csdn.net/nthack5730/article/details/51132560
更多有关老猫的文章:http://blog.csdn.net/nthack5730
Shiro整合SSH开发3:配置Shiro认证后页面地址跳转问题(和详述不配置需要注意的问题)
标签:
原文地址:http://blog.csdn.net/nthack5730/article/details/51132560