首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往
您找到你想要的搜索结果了吗?
是的
没有找到

如何存储用户的密码才能算安全?

mapped for the id "null" 原因也很明显,正如 spring security 的更新文档中描述的那样,spring security 5 对 PasswordEncoder 做了相关的重构...(明文密码)被移除了,想要做到明文存储密码,只能使用一个过期的类来过渡 @Bean PasswordEncoder passwordEncoder(){ return NoOpPasswordEncoder.getInstance...@Bean PasswordEncoder passwordEncoder(){ return new BCryptPasswordEncoder(); } 别忘了对你数据库中的密码进行同样的编码...@Bean PasswordEncoder passwordEncoder(){ return PasswordEncoderFactories.createDelegatingPasswordEncoder...java.lang.IllegalArgumentException: There is no PasswordEncoder mapped for the id "null" 这个 id 就是因为我们没有为数据库中的密码添加

1.3K30
领券