在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.
这是怎么回事?我需要更改任何配置吗?
Apache Derby需要Spring Boot目前不支持的10.15.x版Java 9。