⚠ This page is served via a proxy. Original site: https://github.com
This service does not collect credentials or authentication data.
Skip to content

Conversation

@onobc
Copy link
Contributor

@onobc onobc commented Feb 2, 2026

This commit drops support for projections if a parameter (or the parameter type) is not explicitly annotated with @ ProjectedPayload. A warning is still logged in these cases to help user understand why the parameter is not being projected.

Closes #3301

onobc added 2 commits February 2, 2026 14:45
This commit drops support for projections if a parameter (or the parameter type)
is not explicitly annotated with `@ProjectedPayload`. A warning is still logged
in these cases to help user understand why the parameter is not being projected.

Closes spring-projects#3301
- clarifies controller method names
- groups test methods by what they are doing

See spring-projects#3301
@onobc onobc added this to the 4.1 M1 (2026.0.0) milestone Feb 2, 2026
@onobc onobc added type: enhancement A general enhancement has: breaking-change An issue that is associated with a breaking change. labels Feb 2, 2026
@onobc onobc self-assigned this Feb 2, 2026
@onobc onobc requested a review from mp911de February 2, 2026 21:08
@@ -115,7 +115,7 @@ public boolean supportsParameter(MethodParameter parameter) {
// Parameter annotated with @ModelAttribute
if (parameter.hasParameterAnnotation(ModelAttribute.class)) {
this.deprecationLogger.logDeprecationForParameter(parameter);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In 4.2 when we rip out the logging we will simplify this logic greatly. Leaving as-is for now so that logging remains in the proper places.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

has: breaking-change An issue that is associated with a breaking change. type: enhancement A general enhancement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Stop supporting params that are not annotated with @ProjectedPayload (4.1.x)

1 participant