奇凡
2011-03-20 17:23SSH 整合问题 新手求教
[quote]信息: ... initialized Struts-Spring integration successfully
Hibernate: insert into t_user (account, password, name, headpic, sex, birthday, bloodtype, constellation, hometown, introduction) values (?, ?, ?, ?, ?, ?, ?, ?, ?, ?)
2011-3-21 17:10:25 org.hibernate.util.JDBCExceptionReporter logExceptions
警告: SQL Error: 515, SQLState: 23000
2011-3-21 17:10:25 org.hibernate.util.JDBCExceptionReporter logExceptions
严重: 不能将值 NULL 插入列 'account',表 'MicroblogData.dbo.t_user';列不允许有 Null 值。INSERT 失败。[/quote]
我在做的是个注册模块 account, password, name都 不能为NULL 其它配置文件都应该不会出错
当我输入http://...../regist后 貌似Hibernate就发送了一条insert语句 就报错了 怎么不要让Hibernate发送insert语句的?
- 点赞
- 回答
- 收藏
- 复制链接分享
5条回答
为你推荐
- SSH 整合问题 新手求教
- it技术
- 互联网问答
- IT行业问题
- 计算机技术
- 编程语言问答
- 0个回答
- 新手求教SSH整合的问题 附整合包的图 是否是由于包之间的兼容~
- it技术
- 互联网问答
- IT行业问题
- 计算机技术
- 编程语言问答
- 0个回答