spring-boot icon indicating copy to clipboard operation
spring-boot copied to clipboard

Spring Boot suddently requires PlatformTransactionManager

Open dilgerma opened this issue 11 years ago • 2 comments

It think it depends on : https://github.com/spring-projects/spring-boot/pull/2809

Spring Boot 1.3

With these Depdendencies:

dependencies {
    compile "org.projectlombok:lombok:1.16.4"
    compile "com.google.guava:guava:17.0"
    compile("org.springframework.boot:spring-boot-starter-web") {
        exclude module: "spring-boot-starter-tomcat"
    }
    compile("org.springframework.boot:spring-boot-starter-jetty")
    compile("org.springframework.boot:spring-boot-starter-actuator")
    compile("org.springframework.cloud:spring-cloud-starter-eureka")

    compile("commons-io:commons-io:2.4")
    compile('commons-fileupload:commons-fileupload:1.3.1')
    compile("de.codecentric:spring-boot-admin-starter-client:1.2.3")
    compile("org.springframework.data:spring-data-mongodb") {
    }

    testCompile("org.springframework.boot:spring-boot-starter-test")

}

Suddenly requires a PlatformTransactionManager.

This is due to the fact that spring-boot-starter-mongo brings in spring-tx that enables TransactionAutoConfiguration.

dilgerma avatar Nov 16 '15 22:11 dilgerma

TransactionAutoConfiguration is conditional on a single PlatformTransactionManager bean so it shouldn't be switched on in the scenario you have described. What's the full stacktrace of the failure that you are seeing?

wilkinsona avatar Nov 17 '15 07:11 wilkinsona

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.

spring-projects-issues avatar Dec 08 '15 17:12 spring-projects-issues