Connection is read-only. Queries leading to data modification are not allowed

桃扇骨 2022-05-22 22:57 212阅读 0赞
Connection is read-only. Queries leading to data modification are not allowed

Connection is read-only. Queries leading to data modification are not allowed

[html] view plain copy

[html] view plain copy

[html] view plain copy

在上面的beans.xml配置中, 一开始没有配置add*,del*,update*等等。 就会在调用相应的方法时出错。

而获取数据则没有问题, 是因为有

[html] view plain copy

  1. <bean id=”transactionManager”
  2. class=”org.springframework.orm.hibernate3.HibernateTransactionManager”>

发表评论

表情:
评论列表 (有 0 条评论,212人围观)

还没有评论,来说两句吧...

相关阅读