Cause: java.sql.SQLException: Field ‘id‘ doesn‘t have a default value

Problem reporting error:

 problem solved:

 

It is because the java entity Id has set the auto-increment property, but Mysql has not set the auto-increment property, all resulting in an error. Find the database operating software and set the corresponding primary key to auto-increment.

Guess you like

Origin blog.csdn.net/ZWP_990527/article/details/128287971