springmvv gets the parameters passed by the foreground

The first way, like my form form, has an input tag like input name=password

Then in my controller, the defined method passes a parameter of type string, for example

public String login (String password){} In this way, we can receive the parameters of the foreground in the background

 

The second way: use pojo to receive parameters, for example, two parameters of name and password are defined in my user object, and then the pojo parameter is passed in the controller method,

 

 The third, receive an array, such as checkbox



 

 

 

 

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=327073454&siteId=291194637