Add @ProjectedPayload to web projection interfaces
ProprietaryAs of Spring Data 2026.0 (Spring Boot 4.1), interface-based projections used as Spring MVC controller handler-method parameters must be annotated with @ProjectedPayload. Unannotated projection types still work but log a deprecation warning, and the lenient behavior is slated for removal in Spring Data 2026.1. This recipe annotates project interfaces that are bound as web projection parameters.
io. moderne. java. spring. data. AddProjectedPayloadAnnotationmod run . --recipe= io. moderne. java. spring. data. AddProjectedPayloadAnnotationInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.