用eclipse写个注册出的问题,求解
org.springframework.jdbc.UncategorizedSQLException: Hibernate operation: could not insert: [pojo.Mopuser]; uncategorized SQLException for SQL [insert into cosmop.mopuser values ( )]; SQL state [HY000]; error code [1364]; Field 'id' doesn't have a default value; nested exception is java.sql.SQLException: Field 'id' doesn't have a default value
我不知道是怎么回事了,我以为是配置文件和数据库的数据没对应,但是我都核对几遍了,实在能力有限,求搞人现身救救我吧
[解决办法]
反sql语句输出看一下,其中id字段与数据库不匹配,id段无缺省值