What is the Map process of springmvc dealing with model data
This article mainly explains "what is the process of springmvc dealing with model data Map". The content of the article is simple and clear, and it is easy to learn and understand. Please follow the editor's train of thought to study and learn "what is the Map process of springmvc processing model data".
SpringmvcTest.java
RequestMapping ("/ springmvc") @ Controllerpublic class SpringmvcTest {private static final String SUCCESS = "success"; @ RequestMapping (value= "/ testMap") public String testMap (Map map) {map.put ("names", Arrays.asList ("tom", "jack", "bob")); return SUCCESS;}}
Index.jsp
TestMap
Success.jsp
Success
Names:$ {requestScope.names}
After starting the server:
Click:
Parameters of types Model and ModelMap can actually be passed in.
Thank you for reading, the above is the content of "what is the process of springmvc dealing with model data Map". After the study of this article, I believe you have a deeper understanding of what is the process of springmvc dealing with model data Map, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!