最近、私はSpring Security 3からバージョン4に移行しました。ここでバージョン3からバージョン4への移行後にSpringセキュリティが機能しない
は私spring-security.xml
です:
<beans:beans xmlns="http://www.springframework.org/schema/security"
xmlns:beans="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-4.2.xsd
http://www.springframework.org/schema/security
http://www.springframework.org/schema/security/spring-security-4.0.xsd">
<http auto-config="true" use-expressions="true">
<intercept-url pattern="/home.MRCMPU" access="permitAll"/>
<intercept-url pattern="/loginFailure.MRCMPU" access="permitAll"/>
<intercept-url pattern="/*.MRCMPU" access="permitAll"/>
<intercept-url pattern="/con" access="permitAll"/>
<form-login
login-page="/home.MRCMPU"
login-processing-url="/login" authentication-success-handler-ref="AuthenticationSuccess"
authentication-failure-handler-ref="AuthenticationFailure" username-parameter="username" password-parameter="password" />
<logout logout-url="/logout.MRCMPU" success-handler-ref="Logout" invalidate-session="true" delete-cookies="true"/>
</http>
<authentication-manager>
<authentication-provider user-service-ref="Authentication"/>
</authentication-manager>
</beans:beans>
誰もがこのコードから競合を見つけることができますか?
共有サーバー自体あなたを開始する一方で、フォームのアクションURLが –
404エラーを取得しているかの例外私の答えで述べたように、設定が正しくない場合は例外が発生します – pjishnu
に動作していない –