Can we send an object as the response of controller handler method?



Can we send an object as the response of controller handler method?..

Answer / Akshay Vivek

Yes, you can send an object as a response from a Spring MVC controller by using ModelAndView or ResponseEntity classes.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Spring Framework Interview Questions

What is crudrepository?

1 Answers  


What is an entity in entity framework?

1 Answers  


How can you inject java collection in spring?

0 Answers  


What are the ways to access hibernate using spring?

1 Answers  


Does spring boot need tomcat? : Spring Boot

1 Answers  


What are the different aop implementations?

1 Answers  


What is spring rest?

1 Answers  


What are the limitations with auto wiring?

1 Answers  


What is the purpose of spring framework?

1 Answers  


What are the design patterns used in spring boot? : Spring Boot

1 Answers  


How many modules are there in spring? What are they?

1 Answers  


What is lightinject?

1 Answers  


Categories