问题
I have been having some trouble logging in when typing the credentials in the login page. For some reason, I am typing a wrong password even though I have checked the correct one in the database. So I thought of printing in the console the password that I type. How can I do that?
回答1:
I wrote up an approach at http://burtbeckwith.com/blog/?p=2029 - this is a followup to this earlier post: http://burtbeckwith.com/blog/?p=2003
As I mention in the post, since this will print cleartext passwords on the console, be sure to remove this as soon as you determine and fix what's misconfigured.
来源:https://stackoverflow.com/questions/21468570/print-username-and-password-used-in-spring-security-authentication