Add order offset to @EnableMethodSecurity #13214
Labels
in: config
An issue in spring-security-config
status: ideal-for-contribution
An issue that we actively are looking for someone to help us with
type: enhancement
A general enhancement
Since
@EnableMethodSecurity
defines multiple method interceptors, anorder
attribute may be misleading. That said, it would be nice to be able to change the default position its method interceptors have in the Spring AOP advisor chain.This is already possible by re-declaring each method interceptor as a bean and setting their individual order values one-by-one.
Instead, an attribute would make this easier. Something like:
would mean that the method interceptors should be given values increasing from 1000, allowing applications to select where the interceptors should be placed.
The text was updated successfully, but these errors were encountered: