Passing objects from the foreground to the background (springmvc) problem

I encountered a very strange problem today:

Use action="wf/deployadd.do" when transferring an object from the foreground form to the background, and the floor bar can normally display the jump path http://localhost:8080/qwer/wf/deployadd.do, but it just cannot Execute the method, and directly enter http://localhost:8080/qwer/wf/deployadd.do in the address bar to access the method:

After some research, I found the problem:

I directly use the name in the input and the property of the background bean to pass the value one by one, and accept it directly in the form of an object at the controller layer, but now the problem comes: the values ​​​​passed in the front are all strirng types, and in my bean Int type attributes, so when the data is directly in the background, the corresponding bean is not received at all, so an error is reported directly, and the address is not even redirected. 

Guess you like

Origin blog.csdn.net/qi95719/article/details/62226127