Open tiwatsuka opened 7 years ago
I vote to @tiwatsuka's opinion.
I prefer to set defaultAutoCommit = false
for prevent an unintentional commit when it mistake a transaction settings. I think If set defaultAutoCommit = true
, it difficult to detect a mistaken transaction setting.
In Spring Security OAuth, several classes (DefaultTokenServices, JdbcApprovalStore, JdbcAuthorizationCodeServices, etc.) access databases. However, not all methods in these classes are
@Transactional
. Because of this, approvals and authorization codes are not stored in the database when autoCommit = false.I believe that the framework should set
@Transactional
appropriate place to work properly even if autoCommit is set false.