如何使用XML名称空间配置将BCrypt密码编码器与内存用户服务一起使用?我尝试了以下方法:
<bean id="bcrypt" class="org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder"/>
<security:authentication-manager alias="authenticationManager">
<security:authentication-provider>
<security:password-encoder ref="bcrypt" />
<security:user-service id="userService">
<security:user name="123" password="123" authorities="123" />
</security:user-service>
</security:authentication-provider>
</security:authentication-manager>
在这种情况下,Spring希望密码已经是盐形式。如何使用带有XML config的编码器对密码加盐?