BCryptPasswordEncoder装配bean
时间: 2024-01-06 20:03:34 浏览: 79
Spring自动装配Bean实现过程详解
5星 · 资源好评率100%
根据引用和引用的信息,可以看出BCryptPasswordEncoder被装配为一个bean。在SecurityConfiguration类中,使用@Bean注解创建了一个名为passwordEncoder的BCryptPasswordEncoder对象,并将其作为一个PasswordEncoder类型的bean进行注入。因此,在应用程序中可以通过@Autowired注解来装配BCryptPasswordEncoder bean,就像在引用中的代码片段中展示的那样。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [一分钟弄懂Spring @Bean @Autowired @Qualifier 的常见异常 以及命名规范](https://blog.csdn.net/qq_33709508/article/details/104404631)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [Java开发 - 单点登录初体验(Spring Security + JWT)](https://blog.csdn.net/CodingFire/article/details/129292430)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文