AntiPattern
Dynamic PreAuthorize SpEL
hardcoded-dynamic-preauthorize-spel
Manually generated Spring Security @PreAuthorize SpEL expressions break when authority names or role lists are intended to be dynamic, forcing duplicated hard-coded expressions across hundreds of methods and leading to failed evaluations like hasAnyRole({roles}).