我是 Java Config 的新手,并且正在努力将基于 Java 的配置转换为基于 XML 的配置。任何人都可以指导我进行转换。非常感谢!
@Bean
@Scope(value="singleton", proxyMode=ScopedProxyMode.INTERFACES)
public UsersConnectionRepository usersConnectionRepository(AccountRepository accountRepository) {
JdbcUsersConnectionRepository repository = new JdbcUsersConnectionRepository(
dataSource, connectionFactoryLocator(), Encryptors.noOpText());
repository.setConnectionSignUp(new AccountConnectionSignUp(accountRepository));
return repository;
}