Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
SEC-2416: Hello Spring MVC Security Java Config documentation is incorrect #2632
The directions for a basic intro into securing a spring mvc web application seem to be wrong. I cannot follow them and produce the expected results.
I followed as many instructions as I could, but in the end I could not get a login screen. I like Spring and I am sure you did a good job at the security library. I just have a hard time getting an idea of what it does without a working intro.
As an aside I recommend when you give people the git command, clone from a tag instead of cloning from the tip.
Rob Winch said:
Thank you for the feedback. I have fixed the guides at http://docs.spring.io/spring-security/site/docs/3.2.x-SNAPSHOT/guides/hellomvc.html I went through the guide and it works well for me now. Can you see if this works better for you? If not, please provide any additional issues you have.
I have corrected this in master. You can see the update here
I'm guessing this was not working due to SEC-2388 which has since been fixed. MessageWebApplicationInitializer can be found here, but since the dependency was missing I'm guessing it was not added to your workspace.
I removed the clone example to keep the samples as simple and concise as possible. See here