31323334353637
public void setPassword(String password) { this.password = password; } public Account createAccount() { return new Account(getEmail(), getPassword(), "ROLE_USER"); }
11121314151617
@ImportResource(value = "classpath:spring-security-context.xml") class SecurityConfig { @Bean public UserService userService() { return new UserService(); }