spring security 注解

开启Spring Security 注解

  • 默认是禁用注解的,要想开启注解,需要继承 WebSecurityConfigurerAdapter并且加上@EnableGlobalMethodSecurity注解

@EnableGlobalMethodSecurity详解

原文地址:https://www.cnblogs.com/MND1024/p/10973517.html