Tag

ResponseBody

0 views collected around this technical thread.

Selected Java Interview Questions
Selected Java Interview Questions
Mar 14, 2022 · Backend Development

Understanding @RestController, @Controller and @ResponseBody Annotations in Spring MVC

This article explains the differences between @RestController and @Controller, shows how @RestController combines @Controller with @ResponseBody, and details the internal processing flow of the @ResponseBody annotation within Spring MVC's handler adapters and return‑value handlers.

AnnotationJavaResponseBody
0 likes · 7 min read
Understanding @RestController, @Controller and @ResponseBody Annotations in Spring MVC
Java Architecture Diary
Java Architecture Diary
Apr 13, 2020 · Backend Development

What Determines @ResponseBody’s Default Return Format in Spring MVC?

In Spring MVC, the default data format returned by @ResponseBody depends on the client’s Accept header, and the framework selects an appropriate HttpMessageConverter through RequestResponseBodyMethodProcessor, which evaluates acceptable and producible media types to produce JSON, XML, or other formats.

Accept HeaderHttpMessageConverterJava
0 likes · 5 min read
What Determines @ResponseBody’s Default Return Format in Spring MVC?
Beike Product & Technology
Beike Product & Technology
Oct 12, 2018 · Backend Development

Spring MVC Source Code Walkthrough: Understanding How @ResponseBody Returns JSON

This article walks through the Spring MVC internals, explaining how the @ResponseBody annotation triggers JSON serialization by tracing the DispatcherServlet, HandlerAdapters, and ReturnValueHandlers, and includes runnable Spring Boot test code to illustrate the processing flow.

Backend DevelopmentJavaResponseBody
0 likes · 9 min read
Spring MVC Source Code Walkthrough: Understanding How @ResponseBody Returns JSON