What is the difference between model and modelmap in spring?



What is the difference between model and modelmap in spring?..

Answer / Pradeep Kumar Dixit

Model generally refers to a Java POJO (Plain Old Java Object) that represents a row of data from a database. ModelMap, on the other hand, is a Spring-specific class used to hold a collection of attributes for use with views. It allows you to pass data between the controller and the view.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Spring Framework Interview Questions

What is a bean in spring?

1 Answers  


What is embedded container in spring boot? : Spring Boot

1 Answers  


What is namedparameterjdbctemplate in spring?

1 Answers  


How to upload a file to spring mvc?

1 Answers  


What is the bean life cycle in spring bean factory container?

1 Answers  


What is the difference between @autowired and @qualifier?

1 Answers  


What do you know the spring mvc interceptor and how is it used?

1 Answers  


Name the types of transaction management that are supported by spring?

1 Answers  


Differentiate between beanfactory and applicationcontext.

1 Answers  


Explain the concept and function of the path variable.

1 Answers  


What is the difference between dao and repository?

1 Answers  


What is beanfactoryaware in spring?

1 Answers  


Categories