Updated Spring Security config.