开发者

Spring's JdbcTemplate read only connection exception

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>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜