action, controller accepts page parameters in 3 ways

1. Use request.getParameter(); the premise is that there is a request in the method

2. 对象 public String add(Predection predection){ 

        Here you can use the prediction object to accept the parameters of the page (provided that the parameters of the page are all attributes in this object)

      }

3. You can set and get him by privatizing the page parameters

    private String text;

    private String name;

  

    Then give him the set and get methods 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326178645&siteId=291194637