![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ssh
weixin_43625204
学习中.........................................................................................................................................................................................................
展开
-
错误记录: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 · 275 阅读 · 0 评论 -
错误记录: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 · 345 阅读 · 0 评论 -
错误记录:[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 · 332 阅读 · 0 评论