SpEL parameter Error API curl -X GET "http://localhost:8000/api/any-string/v1" Without SpEL parameter API curl -X GET "http://localhost:8000/api/any-string/v2" When @PreAuthorize with SpEL parameter it passing null.