Skip to content

Link to @EnableMethodSecurity instead of the deprecated @EnableGlobalMethodSecurity #43308

@yeoleobun

Description

@yeoleobun

@EnableGlobalMethodSecurity at

To add method-level security to a web application, you can also add javadoc:org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity[format=annotation] with your desired settings.

was deprecated.

Method Security:

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions