General content of error report
java.lang.NullPointerException] with root cause
Write on the front
Explanation: This is just one of the reasons I found. Maybe yours is different from mine. If the problem is not solved, spray gently..
SSM project, developed with eclipse.
Add commodities in the background of the mall. After filling in the relevant information of the product, submit the form and report the error.
When filling in, the input value should be consistent with the attribute type of POJO entity class, otherwise an error will be reported
Front page and part of the code
Background POJO class
Since the price type in POJO class is double, don’t enter a string in the commodity price column (I entered some letters at random at the beginning of the test and reported an error, just enter a number instead.)