I've a function updating a database table using Spring's JdbcTemplate and 开发者_如何学Gofor some reason there was exception about the fact that the connection is read only and can't update any database related changes. How to resolve this problem?
Check the transaction property. Is it Read-Only?
http://static.springsource.org/spring/docs/2.0.x/reference/transaction.html
Try adding this to the datasource defination
<property name="defaultReadOnly">
<value>false</value>
</property>
精彩评论