As of Spring Security 4.0,
@EnableWebMvcSecurityis deprecated. The replacement is
@EnableWebSecuritywhich will determine adding the Spring MVC features
based upon the classpath.To enable Spring Security integration with Spring MVC add the
@EnableWebSecurityannotation to your configuration.
source