Question
@EnableGlobalMethodSecurity is deprecated in the new spring boot 3.0
I use Spring Boot 3.0, and when I work on security configuration, I get a warning that the @EnableGlobalMethodSecurity
is deprecated.
@Configuration
@EnableWebSecurity
@AllArgsConstructor
@EnableGlobalMethodSecurity(prePostEnabled = true)
public class SecurityConfig {
With what do I replace can replace @EnableGlobalMethodSecurity
in Spring boot 3.0?
48 43028
48