In my Spring MVC (5.0.3) application I have added a class SecurityConfig which extends WebSecurityConfigurerAdapter as follows:
SecurityConfig
WebSecurityConfigurerAdapter
@Con