java—从SpringBoot2.1.7升级到2.2.0后,由于failureanalyzer,应用程序无法启动

kcugc4gi  于 2021-07-06  发布在  Java
关注(0)|答案(0)|浏览(217)

我正在做一个基于spring引导的项目,到目前为止我使用的是2.1.7。当我开始使用hateoas时,我决定使用更新的hateoas1.0,因此我升级了我的应用程序,使之成为springboot2.2.0。
我对应用程序所做的唯一更改是:
在应用程序的父pom中更改spring boot的版本(spring boot是父级)
通过运行hateoas团队提供的脚本来适应hateoas1.0中的更改。
在那之后,所有的构建问题都消失了,但是我不能再让我的应用程序再次启动,因为它失败了,因为某个jdbc类不在类路径中:
20:22:04.219调试org.springframework.boot.diagnostics.failureanalyzers-failureanalyzers org.springframework.boot.autoconfigure.jdbc。hikaridriverconfigurationfailureanalyzer@2f254559 失败

20:22:04.219 DEBUG org.springframework.boot.diagnostics.FailureAnalyzers - FailureAnalyzer org.springframework.boot.autoconfigure.jdbc.HikariDriverConfigurationFailureAnalyzer@2f254559 failed java.lang.TypeNotPresentException: Type org.springframework.jdbc.CannotGetJdbcConnectionException not present at sun.reflect.generics.factory.CoreReflectionFactory.makeNamedType(CoreReflectionFactory.java:117) ~[?:?] at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:125) ~[?:?]
at sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:49) ~[?:?]
at sun.reflect.generics.visitor.Reifier.reifyTypeArguments(Reifier.java:68) ~[?:?]
at sun.reflect.generics.visitor.Reifier.visitClassTypeSignature(Reifier.java:138) ~[?:?]
at sun.reflect.generics.tree.ClassTypeSignature.accept(ClassTypeSignature.java:49) ~[?:?]
at sun.reflect.generics.repository.ClassRepository.computeSuperclass(ClassRepository.java:104) ~[?:?]
at sun.reflect.generics.repository.ClassRepository.getSuperclass(ClassRepository.java:86) ~[?:?]
at java.lang.Class.getGenericSuperclass(Class.java:949) ~[?:?]
at org.springframework.core.ResolvableType.getSuperType(ResolvableType.java:467) ~[spring-core-5.2.0.RELEASE.jar:5.2.0.RELEASE]
at org.springframework.core.ResolvableType.as(ResolvableType.java:456) ~[spring-core-5.2.0.RELEASE.jar:5.2.0.RELEASE]
at org.springframework.core.ResolvableType.forClass(ResolvableType.java:1035) ~[spring-core-5.2.0.RELEASE.jar:5.2.0.RELEASE]
at org.springframework.boot.diagnostics.AbstractFailureAnalyzer.getCauseType(AbstractFailureAnalyzer.java:56) ~[spring-boot-2.2.0.RELEASE.jar:2.2.0.RELEASE]
at org.springframework.boot.diagnostics.AbstractFailureAnalyzer.analyze(AbstractFailureAnalyzer.java:33) ~[spring-boot-2.2.0.RELEASE.jar:2.2.0.RELEASE]
at org.springframework.boot.diagnostics.FailureAnalyzers.analyze(FailureAnalyzers.java:110) [spring-boot-2.2.0.RELEASE.jar:2.2.0.RELEASE]
at org.springframework.boot.diagnostics.FailureAnalyzers.reportException(FailureAnalyzers.java:103) [spring-boot-2.2.0.RELEASE.jar:2.2.0.RELEASE]
at org.springframework.boot.SpringApplication.reportFailure(SpringApplication.java:816) [spring-boot-2.2.0.RELEASE.jar:2.2.0.RELEASE]
at org.springframework.boot.SpringApplication.handleRunFailure(SpringApplication.java:801) [spring-boot-2.2.0.RELEASE.jar:2.2.0.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:325) [spring-boot-2.2.0.RELEASE.jar:2.2.0.RELEASE]
at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:140) [spring-boot-2.2.0.RELEASE.jar:2.2.0.RELEASE]
at com.softuarium.celsvs.webapp.CelsvsWebApp.main(CelsvsWebApp.java:14) [classes/:?]

环境:
eclipse sts 4(版本:4.6.0.release,内部版本id:202003181317)
vm-ubuntu18-es2698:~/celsvs/celsvs webapp$java-version openjdk version“11.0.6”2020-01-14 openjdk运行时环境(build 11.0.6+10-post-ubuntu-1ubuntu118.04.1)openjdk 64位服务器vm(build 11.0.6+10-post-ubuntu-1ubuntu118.04.1,混合模式)
vm-ubuntu18-es2698:~/celsvs/celsvs webapp$mvn-version apache maven 3.6.0 maven home:/usr/share/maven java version:11.0.6,供应商:ubuntu,运行时:/usr/lib/jvm/java-11-openjdk-amd64默认区域设置:en\u us,平台编码:utf-8 os name:“linux”,version:“5.3.0-46-generic”,arch:“amd64”,family:“unix”
我在github的特定分支中有所有更改。如果有人想嗅到,请随时克隆回购:https://github.com/asjp1970/celsvs.git 铁路支线https://github.com/asjp1970/celsvs/tree/celsvs_0-1-0_uplift-spring-2.2.0

暂无答案!

目前还没有任何答案,快来回答吧!

相关问题