Summary

loginProcessingUrl() in Java config does not work the same way that the loginProcessingUrl attribute of the form-login element of the XML configuration.

Actual Behavior

Redirecting to the URL specified in AbstractAuthenticationFilterConfigurer#loginProcessingUrl ends in a 404 error.

Expected Behavior

Redirecting to the URL specified must start the login process.

Configuration

Please see this question on Stackoverflow.

Version

4.2.3 and 4.2.4

Sample

This is an example that uses my config but seems to work correctly, in two or three days I will try to post an example showing the problem.

https://github.com/jzheaux/spring-security-examples/tree/master/stackoverflow-48998865

Comment From: lizhouyang

still open? i met the same problem