- 博客(7)
- 收藏
- 关注
原创 错误记录:You have an error in your SQL syntax; check the manual that corresponds to your MySQL
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 'condition, price) values (101, '买', 40, '南京', '东', 300.0)' at lin...
2020-05-07 21:02:37 303
原创 错误记录:[SSH] Turn your Session into FlushMode.COMMIT/AUTO or remove 'readOnly' marker from transaction
这个错我试了很多:方法一:spring配置文件中加上<!-- 配置事务通知 <tx:advice id="txAdvice" transaction-manager="transactionManager"> <tx:attributes > --> <!-- 事务管理策略,...
2020-04-28 22:06:43 355
原创 错误记录:A different object with the same identifier value was already associated with the session :
Session session = getHibernateTemplate().getSessionFactory().getCurrentSession();//获取当前sessionsession(entity);//解决游离态对象,该方法应该是根据游离态对象的OID,执行select语句,将游离态对象转成了持久化对象,之后update()原博客...
2020-04-28 21:50:38 371
转载 错误记录 :
Encountered " <ILLEGAL_CHARACTER> "\u00a0 "" at line 1,column 11空格跟空格也是不一样的,分类如下\u00A0:不间断空格,主要用在office中,让一个单词在结尾处不会换行显示\u0020:半角空格(英文符号),代码中常用的\u3000:全角空格(中文符号),中文文章中使用参考如下:作者:鲸夕起链...
2020-04-21 22:19:09 402
原创 记录Unable to load configuration. - Class: java.net.AbstractPlainSocketImpl File: AbstractPlainSocketI
记录Unable to load configuration. - Class: java.net.AbstractPlainSocketImpl File: AbstractPlainSocketImp没有在本地形成struts-2.3.dtd文件,所以只有在联网情况下通过http://struts.apache.org/dtds/struts-2.3.dtd去找。把它改为2.1的就可以在联网...
2020-04-16 12:58:35 458
原创 Positional parameter are considered deprecated; use named parameters or JPA-style positional paramet
建议使用命名参数或JPA占位符来代替老的占位符。老的占位符为:String hql="from Loginusers u where u.userName=?"; Session session=this.getSessionFactory().openSession(); //获得session对象 Query query=session.createQuery(hql...
2020-04-04 16:58:19 294
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人