升级到Apache Derby 10.15后Spring Boot应用程序中断 - 为什么?

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

在Spring Boot应用程序的一轮SOUP升级期间,我将Apache Derby从10.14.1.0提升到10.15.1.3。现在测试失败了这个美丽(剪切,完整stacktrace here):

Failed to load ApplicationContext
java.lang.IllegalStateException: Failed to load ApplicationContext
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: 
    Error creating bean with name 'org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaConfiguration': 
        Unsatisfied dependency expressed through constructor parameter 0
Caused by: org.springframework.beans.factory.BeanCreationException: 
    Error creating bean with name 'dataSource': 
        Invocation of init method failed
Caused by: java.lang.IllegalStateException: 
    Failed to replace DataSource with an embedded database for tests. 
    If you want an embedded database please put a supported one on the 
    classpath or tune the replace attribute of @AutoConfigureTestDatabase.

这是怎么回事?我需要更改任何配置吗?

spring-boot derby
1个回答
1
投票

Apache Derby需要Spring Boot目前不支持的10.15.x版Java 9。

另见spring-boot#16433

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