@EnableGlobalMethodSecurity at https://github.com/spring-projects/spring-boot/blob/8964203688c111e11604bc4454743998bc387993/spring-boot-project/spring-boot-docs/src/docs/antora/modules/reference/pages/web/spring-security.adoc?plain=1#L6 was deprecated.
You can activate it in your application by annotating any @Configuration class with @EnableMethodSecurity ...
Migrating from @EnableGlobalMethodSecurity:
If you are using @EnableGlobalMethodSecurity, you should migrate to @EnableMethodSecurity.