spring 3.1: jdbcTemplate auto commit to false.
问题 Hi Is their a way to set autocommit to false in spring jdbctemplate. The thing is instead of transaction (where their is rollback option), I want to have query committed at end of transaction. So instead of insert --> commit --> rollback. I want insert --> fail --> (no commit). 回答1: I did not understand your whole question, but I can answer the first part: Is there a way to set autocommit to false in spring jdbctemplate? The autocommit configuration is normally set on the connection itself.