Spring Security 6.x introduced support for interpreting templated expressions in annotations.

Spring Security 7 can now opt into the feature by default.