Skip to content

Cache @ResponseBody presence per controller class in RequestResponseBodyMethodProcessor #36311

@jhoeller

Description

@jhoeller

Following up on #36307, there is also the specific case of @ResponseBody detection at the controller class level in RequestResponseBodyMethodProcessor.supportsReturnType. For a shortcut during request-level resolution, we can locally cache a boolean flag per controller class there.

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions