Get the App
SLTechnology News&Howtos  ›  Development  › 

What is the Map process of springmvc dealing with model data

Shulou Source: shulou.com Published: 2022-06-02 17:41:36 10月04日 Update

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!

Tags: Data model process processing learning content parameters actually that is ideas situations articles more servers knowledge knowledge points articles types follow Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Huawei NVidia OPPO Reno MySQL Shulou Technology