Skip to content

Glossary: Spring Boot Beyond the Basics

@EnableMethodSecurity

Also written: EnableMethodSecurity

An annotation on `SecurityConfig` that makes Spring honour `@PreAuthorize` checks on service methods.

Where the book teaches it

Related terms

@PreAuthorizeMethod security