The object obtained in struts action reports pointer exception

    1) If there is no value, you need new Object(); and then call the set method to set the value.
    2) If there is a value, then the object will be created automatically, no need for new.

Guess you like

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