如何禁用自动提交Spring Boot?

问题描述 投票:0回答:1

我试图禁用自动提交,但我不幸运。我正在使用Spring Boot版本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
java spring-boot
1个回答
0
投票

使用

spring.datasource.auto-commit=false

此属性(以及更多属性)未记录在案。

有关更多未记录的属性,请参阅下面的github问题。

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

© www.soinside.com 2019 - 2024. All rights reserved.