6

I'm trying to disable autocommit, but I'm not lucky. I'm using the Spring Boot version 2.1.3.RELEASE

application.properties

spring.jpa.database=oracle
spring.jpa.database-platform=org.hibernate.dialect.Oracle12cDialect
spring.jpa.generate-ddl=false
spring.jpa.open-in-view=true
spring.jpa.show-sql=false
spring.datasource.hikari.auto-commit=false
Andre Soares
  • 69
  • 1
  • 1
  • 3

2 Answers2

9

Use

spring.datasource.auto-commit=false

This property (and some more too) were not documented.

Please refer below github issue for more undocumented properties.

https://github.com/spring-projects/spring-boot/issues/1829

Sundararaj Govindasamy
  • 8,180
  • 5
  • 44
  • 77
-1

With Spring Boot 3, the connection pool has been changed to HikariCP and the parameter is now : spring.datasource.hikari.auto-commit=false