You have to add @EnableGlobalMethodSecurity(prePostEnabled = true) in your WebSecurityConfig.
You can find it here: http://www.baeldung.com/spring-security-expressions-basic
@Configuration
@EnableWebSecurity
@EnableGlobalMethodSecurity(prePostEnabled = true)
public class WebSecurityConfig extends WebSecurityConfigurerAdapter {