- 博客(8)
- 收藏
- 关注
原创 You have an error in your SQL syntax; check the manual that corresponds to your MySQL 完美解决
1.You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '5 cproduct0_.id as id0_, cproduct0_.bphoto as bphoto0_, cproduc
2016-05-16 14:11:23 8623
原创 org.hibernate.PropertyAccessException: Null value was assigned to a property。。。。完美解决
Stacktracesorg.hibernate.PropertyAccessException: Null value was assigned to a property of primitive type setter of com.cc.entity.CProduct.status org.hibernate.property.BasicPropertyAccessor$Ba
2016-05-11 14:03:15 5042
原创 org.hibernate.exception.SQLGrammarException: could not inYou have an error in your SQL syntax;完美解决错误
错误You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'order orders0_ where orders0_.userid=22' at line 1你是否
2016-05-11 13:52:14 2265
原创 页面传值name与id的困惑 完美解决
这三行代码看起来没什么区别,对于初学的话就是看不懂区别在哪,首先我们说说第一行代码,第一行代码中少了一个name="username",知道少了这个会发生什么事吗?会使你的页面不能获取值给action中。第二行代码没有name但是有个id只有id也是不行的,因为只有id是不能传值的。而第三行则name与id都存在,所以这个是最可取的,能保证能获取值的同时不缺少id的存在
2016-05-10 12:22:39 2802 1
原创 resource: *********.hbm.xml not found 这个错误完美解决
resource: **********.hbm.xml not found本博主在百度搜了一下有很多解决方法,但是都不够完美,例如1. 改成 2.User.hbm.xml放在哪里关键是你hibernate.cfg.xml文件里面怎么写的User.hbm.xml路径,看你的目录结构,你试试在hibernate.cfg.xml里面更改路径 为entity/User.hbm.x
2016-05-10 10:22:12 17060
原创 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 这个错误完美解决
org.springframework.beans.factory.BeanCreationException: Error creating bean with name "....."这个错误我百度了一下,得到很多结果,例如:1.用rar打开 hibernate3.jar,里面已经包含annotations相关包,与老版本冲突。解决的方法:将lib目录下的: hibernat
2016-05-10 10:12:55 81602 20
原创 Field 'id' doesn't have a default value 这个错误完美解决
1.Field 'id' doesn't have a default value2.Field 'id' doesn't have a default value程序启动的时候出现这个是因为一个非常幼稚的错误,认真观察自己的数据库有没有主键和自增加了没有!!!!!!!!!!!!!!!!!本博主遇到这个问题的时候百度了一下解决方法一:打开my.ini,查找sql-mode=
2016-05-10 10:03:34 27431 7
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人