/j_spring_security_checkURL被映射为
UsernamePasswordAuthenticationFilter服务请求。
在中
UsernamePasswordAuthenticationFilter,默认情况下将
postOnly设置为
true。
下面改变
spring-security.xml其设置
postOnly到
false工作。
<bean id="authenticationFilter" p:postonly="false" />
另外,在中
web.xml,需要以下配置:
<filter-mapping> <filter-name>springSecurityFilterChain</filter-name> <url-pattern>/*</url-pattern> <dispatcher>REQUEST</dispatcher> <dispatcher>FORWARD</dispatcher></filter-mapping>



