名前空間構成でSpring security3.1を使用しています。ログイン ページの完全な URL ではなく、コンテキスト パスまでブラウザに URL を入力すると、ログイン ページにリダイレクトしたいと考えています。
たとえば、http://xxx:8080/context/
代わりにhttp://xxx:8080/context/login.html
完全な URL でログイン ページを表示できますhttp://localhost:8080/context/login.html
次のコードを試しました:
<http auto-config='true' authentication-manager-ref="authentication-manager" entry-point-ref="authenticationEntryPoint">
<beans:bean id="authenticationEntryPoint" class="org.springframework.security.web.authentication.LoginUrlAuthenticationEntryPoint">
<beans:property name="loginFormUrl" value="/login.html"/>
<beans:property name="forceHttps" value="true"/>
</beans:bean>
....
LoginUrlAuthenticationEntryPoint
ログインページにリダイレクトするためのエントリも追加しましたが、機能していないようです。