@EnableWebSecurity
public class SecurityConfig extends WebSecurityConfigurerAdapter {
@Autowired
public void configureGlobal(AuthenticationManagerBuilder auth) {
try {
<BUG>auth.inMemoryAuthentication().withUser("john").password("doe").roles("USER");
auth.inMemoryAuthentication().withUser("jane").password("doe").roles("USER,ADMIN");
auth.inMemoryAuthentication().withUser("admin").password("admin").roles("ADMIN");
</BUG>
} catch (Exception e) {

@EnableWebSecurity
public class SecurityConfig extends WebSecurityConfigurerAdapter {
@Autowired
public void configureGlobal(AuthenticationManagerBuilder auth) {
try {
auth.inMemoryAuthentication().withUser("john").password("doe").roles("USER")
.and()
.withUser("jane").password("doe").roles("USER,ADMIN")
.and().withUser("admin").password("admin").roles("ADMIN");
} catch (Exception e) {
