首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 软件管理 > 软件架构设计 >

Spring security2 未开展密码校验

2012-07-27 
Spring security2 未进行密码校验。如果Spring security2未进行密码校验,请查看WEB.xml文件,这个文件中的sp

Spring security2 未进行密码校验。
如果Spring security2未进行密码校验,请查看WEB.xml文件,这个文件中的springSecurityFilterChain配置项,是否被配置到了最后。如配置到最后则Spring security2是有可能不会执行j_spring_security_check进行密码校验的。Struts2中的WEB.xml配置如下:

<?xml version="1.0" encoding="UTF-8"?><web-app id="WebApp_9" version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">    <display-name>PGProject</display-name>       <context-param><param-name>contextConfigLocation</param-name><param-value>classpath:applicationContext.xml</param-value></context-param>    <filter>        <filter-name>struts-prepare</filter-name>        <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsPrepareFilter</filter-class>        <init-param>        <param-name>actionPackages</param-name>        <param-value>cn.com.pzhsteel.action</param-value>        </init-param>    </filter>    <filter>      <filter-name>springSecurityFilterChain</filter-name>      <filter-class>org.springframework.web.filter.DelegatingFilterProxy</filter-class>    </filter>        <filter>        <filter-name>struts-execute</filter-name>        <filter-class>org.apache.struts2.dispatcher.ng.filter.StrutsExecuteFilter</filter-class>    </filter>       <filter>       <filter-name>sitemesh</filter-name>       <filter-class>com.opensymphony.sitemesh.webapp.SiteMeshFilter</filter-class>   </filter>       <filter-mapping>        <filter-name>struts-prepare</filter-name>        <url-pattern>/*</url-pattern>    </filter-mapping>       <filter-mapping>        <filter-name>sitemesh</filter-name>        <url-pattern>/*</url-pattern>    </filter-mapping>    <filter-mapping>    <filter-name>springSecurityFilterChain</filter-name>    <url-pattern>/*</url-pattern>    </filter-mapping>          <filter-mapping>        <filter-name>struts-execute</filter-name>        <url-pattern>/*</url-pattern>    </filter-mapping>    <listener>        <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>    </listener>    <listener>        <listener-class>org.apache.struts2.tiles.StrutsTilesListener</listener-class>    </listener>    <listener>        <listener-class>org.apache.struts2.dispatcher.ng.listener.StrutsListener</listener-class>    </listener>          <servlet>        <servlet-name>sitemesh-freemarker</servlet-name>        <servlet-class>org.apache.struts2.sitemesh.FreemarkerDecoratorServlet</servlet-class>        <init-param>            <param-name>default_encoding</param-name>            <param-value>UTF-8</param-value>        </init-param>        <load-on-startup>1</load-on-startup>    </servlet>        <servlet-mapping>        <servlet-name>sitemesh-freemarker</servlet-name>        <url-pattern>*.ftl</url-pattern>    </servlet-mapping>           <welcome-file-list>        <welcome-file>index.html</welcome-file>    </welcome-file-list></web-app>

热点排行