I'm using spring security with MySql for the database. Spring Security version is 3.2.0.RELEASE
First, I know MD5 should be swapped out with BCrypt encryption. I'm trying to teach myself spring security via the annotation method (@Configuration, @EnableWebSecurity). I was using an old program that had an MD5 password encoder defined.
If I was using spring security with xml files and had:
What would be the equivalent way to implement this without the use of the xml file?
I currently do have this running with unencrypted passwords so I know it is working.
Here's my code:
MvcWebApplicationInitializer
RootConfig.java
SecurityConfig.java
WebMvcConfiguration.java
WebAppConfig
LoginServiceMySqlImpl
Let me know if you need anymore information. If you want, you can use BCrypt with your example. I followed some spring examples and did create a
test user in my user database table that has a BCrypt password. I appreciate anyone who can provide some guidance with this. Thanks!