Security注解:@PreAuthorize,@PostAuthorize, @Secured
一、注解式方法级安全开启需要在WebSecuirtyConfig添加配置:@Configuration@EnableWebSecurity//启用SpringSecurity.////会拦截注解了@PreAuthrize注解的配置.@EnableGlobalMethodSecurity(prePostEnabled=true)publicclassWebSecurityConfigextendsW