Ask Your Question

Revision history [back]

Yes, the method User.withDefaultPasswordEncoder() has been deprecated in Spring Security 5.0+ and is now considered obsolete. It is recommended to use BCryptPasswordEncoder or another secure password hashing algorithm instead.