Spring Boot 项目启动报 NoClassDefFoundError 异常的原因分析与解决方案 - jackson 版本不一致
目录
报错:
问题分析:
解决方案:
方案 1:对 Jackson 版本进行统一
方案 2:升级 Springfox 版本
方案 3:替换 Springfox 为 springdoc-openapi(推荐)
方案 4:排除冲突的 Jackson 依赖
推荐配置示例(使用 Springdoc)
总结
报错: 方案1 解决了问题
org.springframework.context.ApplicationContextException: Failed to start bean 'documentationPluginsBootstrapper'; nested exception is com.google.common.util.concurrent.ExecutionError: com.google.common.util.concurrent.ExecutionError: java.lang.NoClassDefFoundError: com/fasterxml/jackson/annotation/JsonKeyat org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:185)at org.springframework.context.support.DefaultLifecycleProcessor.access$200(DefaultLifecycleProcessor.java:53)at org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup.start(DefaultLifecycleProcessor.java:360)at org.springframework.context.support.DefaultLifecycleProcessor.startBeans(DefaultLifecycleProcessor.java:158)at org.springframework.context.support.DefaultLifecycleProcessor.onRefresh(DefaultLifecycleProcessor.java:122)at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:895)at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:554)at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:143)at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:758)at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:750)at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:405)at org.springframework.boot.SpringApplication.run(SpringApplication.java:315)at org.springframework.boot.SpringApplication.run(SpringApplication.java:1237)at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226)at com.slin.zntrade.AdminAPI.main(AdminAPI.java:18)at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)at java.lang.reflect.Method.invoke(Method.java:498)at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49)
Caused by: com.google.common.util.concurrent.ExecutionError: com.google.common.util.concurrent.ExecutionError: java.lang.NoClassDefFoundError: com/fasterxml/jackson/annotation/JsonKeyat com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2212)at com.google.common.cache.LocalCache.get(LocalCache.java:4053)at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4057)at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4986)at springfox.documentation.schema.CachingModelProvider.modelFor(CachingModelProvider.java:59)at springfox.documentation.spring.web.scanners.ApiModelReader.read(ApiModelReader.java:69)at springfox.documentation.spring.web.scanners.ApiListingScanner.scan(ApiListingScanner.java:133)at springfox.documentation.spring.web.scanners.ApiDocumentationScanner.scan(ApiDocumentationScanner.java:71)at springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper.scanDocumentation(DocumentationPluginsBootstrapper.java:101)at springfox.documentation.spring.web.plugins.DocumentationPluginsBootstrapper.start(DocumentationPluginsBootstrapper.java:167)at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:182)... 19 common frames omitted
Caused by: com.google.common.util.concurrent.ExecutionError: java.lang.NoClassDefFoundError: com/fasterxml/jackson/annotation/JsonKeyat com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2212)at com.google.common.cache.LocalCache.get(LocalCache.java:4053)at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:4057)at com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4986)at springfox.documentation.schema.property.CachingModelPropertiesProvider.propertiesFor(CachingModelPropertiesProvider.java:64)at springfox.documentation.schema.DefaultModelProvider.properties(DefaultModelProvider.java:166)at springfox.documentation.schema.DefaultModelProvider.reflectionBasedModel(DefaultModelProvider.java:100)at springfox.documentation.schema.DefaultModelProvider.modelFor(DefaultModelProvider.java:95)at springfox.documentation.schema.CachingModelProvider$1.load(CachingModelProvider.java:51)at springfox.documentation.schema.CachingModelProvider$1.load(CachingModelProvider.java:49)at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3628)at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2336)at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2295)at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2208)... 29 common frames omitted
Caused by: java.lang.NoClassDefFoundError: com/fasterxml/jackson/annotation/JsonKeyat com.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector.hasAsKey(JacksonAnnotationIntrospector.java:1200)at com.fasterxml.jackson.databind.introspect.AnnotationIntrospectorPair.hasAsKey(AnnotationIntrospectorPair.java:547)at com.fasterxml.jackson.databind.introspect.POJOPropertiesCollector._addFields(POJOPropertiesCollector.java:555)at com.fasterxml.jackson.databind.introspect.POJOPropertiesCollector.collectAll(POJOPropertiesCollector.java:478)at com.fasterxml.jackson.databind.introspect.POJOPropertiesCollector.getPropertyMap(POJOPropertiesCollector.java:413)at com.fasterxml.jackson.databind.introspect.POJOPropertiesCollector.getProperties(POJOPropertiesCollector.java:255)at com.fasterxml.jackson.databind.introspect.BasicBeanDescription._properties(BasicBeanDescription.java:164)at com.fasterxml.jackson.databind.introspect.BasicBeanDescription.findProperties(BasicBeanDescription.java:239)at springfox.documentation.schema.property.OptimizedModelPropertiesProvider.propertiesFor(OptimizedModelPropertiesProvider.java:124)at springfox.documentation.schema.property.OptimizedModelPropertiesProvider.propertiesFor(OptimizedModelPropertiesProvider.java:118)at springfox.documentation.schema.property.CachingModelPropertiesProvider$1.load(CachingModelPropertiesProvider.java:56)at springfox.documentation.schema.property.CachingModelPropertiesProvider$1.load(CachingModelPropertiesProvider.java:54)at com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3628)at com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2336)at com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2295)at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2208)... 42 common frames omitted
Caused by: java.lang.ClassNotFoundException: com.fasterxml.jackson.annotation.JsonKeyat java.net.URLClassLoader.findClass(URLClassLoader.java:382)at java.lang.ClassLoader.loadClass(ClassLoader.java:418)at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)at java.lang.ClassLoader.loadClass(ClassLoader.java:351)... 58 common frames omitted
依赖:
D:\codes\zntrade-parent\admin-api>mvn dependency:tree
[INFO] Scanning for projects...
[INFO]
[INFO] ---------------------< com.slin.zntrade:admin-api >---------------------
[INFO] Building admin-api 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] The POM for com.slin.zntrade:data:jar:1.0-SNAPSHOT is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[INFO]
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ admin-api ---
[INFO] com.slin.zntrade:admin-api:jar:1.0-SNAPSHOT
[INFO] +- org.xhtmlrenderer:flying-saucer-pdf:jar:9.0.7:compile
[INFO] | +- com.lowagie:itext:jar:2.1.7:compile
[INFO] | | +- bouncycastle:bcmail-jdk14:jar:138:compile
[INFO] | | +- bouncycastle:bcprov-jdk14:jar:138:compile
[INFO] | | \- org.bouncycastle:bctsp-jdk14:jar:1.38:compile
[INFO] | | +- org.bouncycastle:bcprov-jdk14:jar:1.38:compile
[INFO] | | \- org.bouncycastle:bcmail-jdk14:jar:1.38:compile
[INFO] | \- org.xhtmlrenderer:flying-saucer-core:jar:9.0.7:compile
[INFO] +- com.slin.zntrade:common:jar:1.0-SNAPSHOT:compile
[INFO] | +- io.springfox:springfox-swagger2:jar:2.9.2:compile
[INFO] | | +- io.swagger:swagger-annotations:jar:1.5.20:compile
[INFO] | | +- io.springfox:springfox-spi:jar:2.9.2:compile
[INFO] | | | \- io.springfox:springfox-core:jar:2.9.2:compile
[INFO] | | +- io.springfox:springfox-schema:jar:2.9.2:compile
[INFO] | | +- io.springfox:springfox-swagger-common:jar:2.9.2:compile
[INFO] | | +- com.google.guava:guava:jar:20.0:compile
[INFO] | | +- com.fasterxml:classmate:jar:1.5.1:compile
[INFO] | | +- org.springframework.plugin:spring-plugin-core:jar:1.2.0.RELEASE:compile
[INFO] | | +- org.springframework.plugin:spring-plugin-metadata:jar:1.2.0.RELEASE:compile
[INFO] | | \- org.mapstruct:mapstruct:jar:1.2.0.Final:compile
[INFO] | +- io.swagger:swagger-models:jar:1.5.21:compile
[INFO] | | \- com.fasterxml.jackson.core:jackson-annotations:jar:2.11.3:compile
[INFO] | +- com.alibaba:fastjson:jar:1.2.83:compile
[INFO] | +- org.apache.commons:commons-lang3:jar:3.8:compile
[INFO] | +- commons-beanutils:commons-beanutils:jar:1.9.3:compile
[INFO] | | +- commons-logging:commons-logging:jar:1.2:compile
[INFO] | | \- commons-collections:commons-collections:jar:3.2.2:compile
[INFO] | +- com.auth0:java-jwt:jar:3.2.0:compile
[INFO] | | +- com.fasterxml.jackson.core:jackson-databind:jar:2.17.0:compile
[INFO] | | | \- net.bytebuddy:byte-buddy:jar:1.10.17:compile
[INFO] | | +- commons-codec:commons-codec:jar:1.14:compile
[INFO] | | \- org.bouncycastle:bcprov-jdk15on:jar:1.55:compile
[INFO] | +- cn.hutool:hutool-all:jar:5.8.1:compile
[INFO] | +- com.vdurmont:emoji-java:jar:5.1.1:compile
[INFO] | | \- org.json:json:jar:20170516:compile
[INFO] | +- com.belerweb:pinyin4j:jar:2.5.1:compile
[INFO] | +- org.apache.shiro:shiro-spring:jar:1.9.1:compile
[INFO] | | +- org.apache.shiro:shiro-core:jar:1.9.1:compile
[INFO] | | | +- org.apache.shiro:shiro-crypto-hash:jar:1.9.1:compile
[INFO] | | | | \- org.apache.shiro:shiro-crypto-core:jar:1.9.1:compile
[INFO] | | | +- org.apache.shiro:shiro-crypto-cipher:jar:1.9.1:compile
[INFO] | | | +- org.apache.shiro:shiro-config-core:jar:1.9.1:compile
[INFO] | | | +- org.apache.shiro:shiro-config-ogdl:jar:1.9.1:compile
[INFO] | | | \- org.apache.shiro:shiro-event:jar:1.9.1:compile
[INFO] | | \- org.apache.shiro:shiro-web:jar:1.9.1:compile
[INFO] | | \- org.owasp.encoder:encoder:jar:1.2.2:compile
[INFO] | +- org.springframework:spring-web:jar:5.2.10.RELEASE:compile
[INFO] | | \- org.springframework:spring-beans:jar:5.2.10.RELEASE:compile
[INFO] | +- junit:junit:jar:4.12:compile
[INFO] | +- io.netty:netty-all:jar:4.1.53.Final:compile
[INFO] | +- com.squareup.okio:okio:jar:2.2.2:compile
[INFO] | | \- org.jetbrains.kotlin:kotlin-stdlib:jar:1.3.72:runtime
[INFO] | | +- org.jetbrains.kotlin:kotlin-stdlib-common:jar:1.3.72:runtime
[INFO] | | \- org.jetbrains:annotations:jar:13.0:runtime
[INFO] | +- javax.xml.bind:jaxb-api:jar:2.3.1:compile
[INFO] | | \- javax.activation:javax.activation-api:jar:1.2.0:compile
[INFO] | \- commons-fileupload:commons-fileupload:jar:1.4:compile
[INFO] +- com.slin.zntrade:data:jar:1.0-SNAPSHOT:compile
[INFO] +- com.slin.zntrade:obs:jar:1.0-SNAPSHOT:compile
[INFO] | +- net.coobird:thumbnailator:jar:0.4.8:compile
[INFO] | +- com.huaweicloud:esdk-obs-java:jar:3.19.7:compile
[INFO] | | +- com.jamesmurty.utils:java-xmlbuilder:jar:1.1:compile
[INFO] | | +- com.squareup.okhttp3:okhttp:jar:3.14.9:compile
[INFO] | | +- com.fasterxml.jackson.core:jackson-core:jar:2.17.0:compile
[INFO] | | +- org.apache.logging.log4j:log4j-core:jar:2.13.3:compile
[INFO] | | \- org.apache.logging.log4j:log4j-api:jar:2.13.3:compile
[INFO] | \- org.springframework:spring-context:jar:5.2.10.RELEASE:compile
[INFO] | \- org.springframework:spring-expression:jar:5.2.10.RELEASE:compile
[INFO] +- com.slin.zntrade:generator:jar:1.0-SNAPSHOT:compile
[INFO] | +- org.apache.velocity:velocity-engine-core:jar:2.0:compile
[INFO] | +- org.freemarker:freemarker:jar:2.3.30:compile
[INFO] | +- com.ibeetl:beetl:jar:2.9.9:compile
[INFO] | | \- org.antlr:antlr4-runtime:jar:4.2:compile
[INFO] | | +- org.abego.treelayout:org.abego.treelayout.core:jar:1.0.1:compile
[INFO] | | \- org.antlr:antlr4-annotations:jar:4.2:compile
[INFO] | \- com.baomidou:mybatis-plus-generator:jar:3.4.1:compile
[INFO] | \- com.baomidou:mybatis-plus-extension:jar:3.4.1:compile
[INFO] | +- com.baomidou:mybatis-plus-core:jar:3.4.1:compile
[INFO] | | +- com.baomidou:mybatis-plus-annotation:jar:3.4.1:compile
[INFO] | | +- com.github.jsqlparser:jsqlparser:jar:3.2:compile
[INFO] | | \- org.mybatis:mybatis:jar:3.5.6:compile
[INFO] | \- org.mybatis:mybatis-spring:jar:2.0.5:compile
[INFO] +- com.slin.zntrade:admin-ui:jar:1.0-SNAPSHOT:compile
[INFO] +- org.springframework.boot:spring-boot-devtools:jar:2.3.5.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot:jar:2.3.5.RELEASE:compile
[INFO] | \- org.springframework.boot:spring-boot-autoconfigure:jar:2.3.5.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-starter-web:jar:2.3.5.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter:jar:2.3.5.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot-starter-logging:jar:2.3.5.RELEASE:compile
[INFO] | | | +- ch.qos.logback:logback-classic:jar:1.2.3:compile
[INFO] | | | | \- ch.qos.logback:logback-core:jar:1.2.3:compile
[INFO] | | | +- org.apache.logging.log4j:log4j-to-slf4j:jar:2.13.3:compile
[INFO] | | | \- org.slf4j:jul-to-slf4j:jar:1.7.30:compile
[INFO] | | +- jakarta.annotation:jakarta.annotation-api:jar:1.3.5:compile
[INFO] | | \- org.yaml:snakeyaml:jar:1.26:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-json:jar:2.3.5.RELEASE:compile
[INFO] | | +- com.fasterxml.jackson.datatype:jackson-datatype-jdk8:jar:2.11.3:compile
[INFO] | | +- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.11.3:compile
[INFO] | | \- com.fasterxml.jackson.module:jackson-module-parameter-names:jar:2.11.3:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-tomcat:jar:2.3.5.RELEASE:compile
[INFO] | | +- org.apache.tomcat.embed:tomcat-embed-core:jar:9.0.39:compile
[INFO] | | +- org.glassfish:jakarta.el:jar:3.0.3:compile
[INFO] | | \- org.apache.tomcat.embed:tomcat-embed-websocket:jar:9.0.39:compile
[INFO] | \- org.springframework:spring-webmvc:jar:5.2.10.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-starter-jdbc:jar:2.3.5.RELEASE:compile
[INFO] | +- com.zaxxer:HikariCP:jar:3.4.5:compile
[INFO] | \- org.springframework:spring-jdbc:jar:5.2.10.RELEASE:compile
[INFO] | \- org.springframework:spring-tx:jar:5.2.10.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-starter-aop:jar:2.3.5.RELEASE:compile
[INFO] | +- org.springframework:spring-aop:jar:5.2.10.RELEASE:compile
[INFO] | \- org.aspectj:aspectjweaver:jar:1.9.6:compile
[INFO] +- org.springframework.boot:spring-boot-starter-test:jar:2.3.5.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-test:jar:2.3.5.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-test-autoconfigure:jar:2.3.5.RELEASE:compile
[INFO] | +- com.jayway.jsonpath:json-path:jar:2.4.0:compile
[INFO] | | \- net.minidev:json-smart:jar:2.3:compile
[INFO] | | \- net.minidev:accessors-smart:jar:1.2:compile
[INFO] | | \- org.ow2.asm:asm:jar:5.0.4:compile
[INFO] | +- jakarta.xml.bind:jakarta.xml.bind-api:jar:2.3.3:compile
[INFO] | | \- jakarta.activation:jakarta.activation-api:jar:1.2.2:compile
[INFO] | +- org.assertj:assertj-core:jar:3.16.1:compile
[INFO] | +- org.hamcrest:hamcrest:jar:2.2:compile
[INFO] | +- org.junit.jupiter:junit-jupiter:jar:5.6.3:compile
[INFO] | | +- org.junit.jupiter:junit-jupiter-api:jar:5.6.3:compile
[INFO] | | | +- org.opentest4j:opentest4j:jar:1.2.0:compile
[INFO] | | | \- org.junit.platform:junit-platform-commons:jar:1.6.3:compile
[INFO] | | +- org.junit.jupiter:junit-jupiter-params:jar:5.6.3:compile
[INFO] | | \- org.junit.jupiter:junit-jupiter-engine:jar:5.6.3:runtime
[INFO] | +- org.junit.vintage:junit-vintage-engine:jar:5.6.3:compile
[INFO] | | \- org.junit.platform:junit-platform-engine:jar:1.6.3:compile
[INFO] | +- org.mockito:mockito-junit-jupiter:jar:3.3.3:compile
[INFO] | +- org.skyscreamer:jsonassert:jar:1.5.0:compile
[INFO] | | \- com.vaadin.external.google:android-json:jar:0.0.20131108.vaadin1:compile
[INFO] | +- org.springframework:spring-core:jar:5.2.10.RELEASE:compile
[INFO] | | \- org.springframework:spring-jcl:jar:5.2.10.RELEASE:compile
[INFO] | +- org.springframework:spring-test:jar:5.2.10.RELEASE:compile
[INFO] | \- org.xmlunit:xmlunit-core:jar:2.7.0:compile
[INFO] +- org.springframework.boot:spring-boot-starter-cache:jar:2.3.5.RELEASE:compile
[INFO] | \- org.springframework:spring-context-support:jar:5.2.10.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-starter-mail:jar:2.3.5.RELEASE:compile
[INFO] | \- com.sun.mail:jakarta.mail:jar:1.6.5:compile
[INFO] | \- com.sun.activation:jakarta.activation:jar:1.2.2:compile
[INFO] +- mysql:mysql-connector-java:jar:8.0.19:compile
[INFO] | \- com.google.protobuf:protobuf-java:jar:3.6.1:compile
[INFO] +- commons-io:commons-io:jar:2.6:compile
[INFO] +- io.springfox:springfox-swagger-ui:jar:2.9.2:compile
[INFO] | \- io.springfox:springfox-spring-web:jar:2.9.2:compile
[INFO] +- com.yunpian.sdk:yunpian-java-sdk:jar:1.2.6:compile
[INFO] | +- org.slf4j:slf4j-api:jar:1.7.30:compile
[INFO] | +- com.google.code.gson:gson:jar:2.8.6:compile
[INFO] | +- org.apache.httpcomponents:httpasyncclient:jar:4.1.4:compile
[INFO] | | +- org.apache.httpcomponents:httpcore:jar:4.4.13:compile
[INFO] | | \- org.apache.httpcomponents:httpcore-nio:jar:4.4.13:compile
[INFO] | +- org.apache.httpcomponents:httpasyncclient-cache:jar:4.1.2:compile
[INFO] | | \- org.apache.httpcomponents:httpclient-cache:jar:4.5.13:compile
[INFO] | \- org.apache.httpcomponents:httpmime:jar:4.5.13:compile
[INFO] +- com.aliyun.oss:aliyun-sdk-oss:jar:3.0.0:compile
[INFO] | +- org.apache.httpcomponents:httpclient:jar:4.5.13:compile
[INFO] | +- org.jdom:jdom:jar:1.1:compile
[INFO] | +- com.sun.jersey:jersey-json:jar:1.9:compile
[INFO] | | +- org.codehaus.jettison:jettison:jar:1.1:compile
[INFO] | | | \- stax:stax-api:jar:1.0.1:compile
[INFO] | | +- com.sun.xml.bind:jaxb-impl:jar:2.2.3-1:compile
[INFO] | | +- org.codehaus.jackson:jackson-core-asl:jar:1.8.3:compile
[INFO] | | +- org.codehaus.jackson:jackson-mapper-asl:jar:1.8.3:compile
[INFO] | | +- org.codehaus.jackson:jackson-jaxrs:jar:1.8.3:compile
[INFO] | | +- org.codehaus.jackson:jackson-xc:jar:1.8.3:compile
[INFO] | | \- com.sun.jersey:jersey-core:jar:1.9:compile
[INFO] | +- com.aliyun:aliyun-java-sdk-core:jar:3.4.0:compile
[INFO] | +- com.aliyun:aliyun-java-sdk-ram:jar:3.0.0:compile
[INFO] | +- com.aliyun:aliyun-java-sdk-sts:jar:3.0.0:compile
[INFO] | \- com.aliyun:aliyun-java-sdk-ecs:jar:4.2.0:compile
[INFO] +- org.projectlombok:lombok:jar:1.18.22:provided
[INFO] +- io.cucumber:cucumber-java:jar:5.1.3:test
[INFO] | +- io.cucumber:cucumber-core:jar:5.1.3:test
[INFO] | | +- io.cucumber:cucumber-gherkin:jar:5.1.3:test
[INFO] | | +- io.cucumber:cucumber-gherkin-vintage:jar:5.1.3:test
[INFO] | | +- io.cucumber:tag-expressions:jar:2.0.4:test
[INFO] | | +- io.cucumber:cucumber-expressions:jar:8.3.1:test
[INFO] | | +- io.cucumber:datatable:jar:3.2.1:test
[INFO] | | +- io.cucumber:cucumber-plugin:jar:5.1.3:test
[INFO] | | \- io.cucumber:docstring:jar:5.1.3:test
[INFO] | \- org.apiguardian:apiguardian-api:jar:1.1.0:compile
[INFO] +- io.cucumber:cucumber-junit:jar:5.1.3:test
[INFO] +- io.cucumber:cucumber-spring:jar:5.1.3:test
[INFO] +- com.google.zxing:core:jar:3.3.3:compile
[INFO] +- org.powermock:powermock-module-junit4:jar:2.0.9:test
[INFO] | +- org.powermock:powermock-module-junit4-common:jar:2.0.9:test
[INFO] | | +- org.powermock:powermock-reflect:jar:2.0.9:test
[INFO] | | | \- net.bytebuddy:byte-buddy-agent:jar:1.10.17:test
[INFO] | | \- org.powermock:powermock-core:jar:2.0.9:test
[INFO] | | \- org.javassist:javassist:jar:3.27.0-GA:test
[INFO] | \- org.hamcrest:hamcrest-core:jar:2.2:compile
[INFO] +- org.powermock:powermock-api-mockito2:jar:2.0.9:test
[INFO] | +- org.powermock:powermock-api-support:jar:2.0.9:test
[INFO] | \- org.mockito:mockito-core:jar:3.3.3:test
[INFO] | \- org.objenesis:objenesis:jar:2.6:test
[INFO] +- de.codecentric:spring-boot-admin-starter-client:jar:2.3.1:compile
[INFO] | \- de.codecentric:spring-boot-admin-client:jar:2.3.1:compile
[INFO] +- org.springframework.boot:spring-boot-starter-actuator:jar:2.3.5.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-actuator-autoconfigure:jar:2.3.5.RELEASE:compile
[INFO] | | \- org.springframework.boot:spring-boot-actuator:jar:2.3.5.RELEASE:compile
[INFO] | \- io.micrometer:micrometer-core:jar:1.5.6:compile
[INFO] | +- org.hdrhistogram:HdrHistogram:jar:2.1.12:compile
[INFO] | \- org.latencyutils:LatencyUtils:jar:2.0.3:runtime
[INFO] +- org.apache.shiro:shiro-ehcache:jar:1.9.1:compile
[INFO] | +- org.apache.shiro:shiro-cache:jar:1.9.1:compile
[INFO] | | \- org.apache.shiro:shiro-lang:jar:1.9.1:compile
[INFO] | \- net.sf.ehcache:ehcache-core:jar:2.6.11:compile
[INFO] +- com.github.javen205:IJPay-WxPay:jar:2.8.1:compile
[INFO] | \- com.github.javen205:IJPay-Core:jar:2.8.1:compile
[INFO] | +- com.google.zxing:javase:jar:3.5.0:compile
[INFO] | | +- com.beust:jcommander:jar:1.82:compile
[INFO] | | \- com.github.jai-imageio:jai-imageio-core:jar:1.4.0:runtime
[INFO] | \- com.github.xkzhangsan:xk-time:jar:3.2.3.Mini:compile
[INFO] +- com.github.javen205:IJPay-AliPay:jar:2.8.1:compile
[INFO] | \- com.alipay.sdk:alipay-sdk-java:jar:4.22.113.ALL:compile
[INFO] | \- dom4j:dom4j:jar:1.6.1:compile
[INFO] | \- xml-apis:xml-apis:jar:1.0.b2:compile
[INFO] +- com.github.javen205:IJPay-PayPal:jar:2.8.1:compile
[INFO] \- org.springframework.boot:spring-boot-starter-security:jar:2.3.5.RELEASE:compile
[INFO] +- org.springframework.security:spring-security-config:jar:5.3.5.RELEASE:compile
[INFO] | \- org.springframework.security:spring-security-core:jar:5.3.5.RELEASE:compile
[INFO] \- org.springframework.security:spring-security-web:jar:5.3.5.RELEASE:compile
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 1.547 s
[INFO] Finished at: 2025-01-06T00:40:11+08:00
[INFO] ------------------------------------------------------------------------D:\codes\zntrade-parent\admin-api>mvn dependency:treeD:\codes\zntrade-parent\admin-api>mvn dependency:tree
[INFO] Scanning for projects...
[INFO]
[INFO] ---------------------< com.slin.zntrade:admin-api >---------------------
[INFO] Building admin-api 1.0-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[WARNING] The POM for com.slin.zntrade:data:jar:1.0-SNAPSHOT is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
[INFO]
[INFO] --- maven-dependency-plugin:2.8:tree (default-cli) @ admin-api ---
[INFO] com.slin.zntrade:admin-api:jar:1.0-SNAPSHOT
[INFO] +- org.xhtmlrenderer:flying-saucer-pdf:jar:9.0.7:compile
[INFO] | +- com.lowagie:itext:jar:2.1.7:compile
[INFO] | | +- bouncycastle:bcmail-jdk14:jar:138:compile
[INFO] | | +- bouncycastle:bcprov-jdk14:jar:138:compile
[INFO] | | \- org.bouncycastle:bctsp-jdk14:jar:1.38:compile
[INFO] | | +- org.bouncycastle:bcprov-jdk14:jar:1.38:compile
[INFO] | | \- org.bouncycastle:bcmail-jdk14:jar:1.38:compile
[INFO] | \- org.xhtmlrenderer:flying-saucer-core:jar:9.0.7:compile
[INFO] +- com.slin.zntrade:common:jar:1.0-SNAPSHOT:compile
[INFO] | +- io.springfox:springfox-swagger2:jar:2.9.2:compile
[INFO] | | +- io.swagger:swagger-annotations:jar:1.5.20:compile
[INFO] | | +- io.springfox:springfox-spi:jar:2.9.2:compile
[INFO] | | | \- io.springfox:springfox-core:jar:2.9.2:compile
[INFO] | | +- io.springfox:springfox-schema:jar:2.9.2:compile
[INFO] | | +- io.springfox:springfox-swagger-common:jar:2.9.2:compile
[INFO] | | +- com.google.guava:guava:jar:20.0:compile
[INFO] | | +- com.fasterxml:classmate:jar:1.5.1:compile
[INFO] | | +- org.springframework.plugin:spring-plugin-core:jar:1.2.0.RELEASE:compile
[INFO] | | +- org.springframework.plugin:spring-plugin-metadata:jar:1.2.0.RELEASE:compile
[INFO] | | \- org.mapstruct:mapstruct:jar:1.2.0.Final:compile
[INFO] | +- io.swagger:swagger-models:jar:1.5.21:compile
[INFO] | | \- com.fasterxml.jackson.core:jackson-annotations:jar:2.11.3:compile
[INFO] | +- com.alibaba:fastjson:jar:1.2.83:compile
[INFO] | +- org.apache.commons:commons-lang3:jar:3.8:compile
[INFO] | +- commons-beanutils:commons-beanutils:jar:1.9.3:compile
[INFO] | | +- commons-logging:commons-logging:jar:1.2:compile
[INFO] | | \- commons-collections:commons-collections:jar:3.2.2:compile
[INFO] | +- com.auth0:java-jwt:jar:3.2.0:compile
[INFO] | | +- com.fasterxml.jackson.core:jackson-databind:jar:2.17.0:compile
[INFO] | | | \- net.bytebuddy:byte-buddy:jar:1.10.17:compile
[INFO] | | +- commons-codec:commons-codec:jar:1.14:compile
[INFO] | | \- org.bouncycastle:bcprov-jdk15on:jar:1.55:compile
[INFO] | +- cn.hutool:hutool-all:jar:5.8.1:compile
[INFO] | +- com.vdurmont:emoji-java:jar:5.1.1:compile
[INFO] | | \- org.json:json:jar:20170516:compile
[INFO] | +- com.belerweb:pinyin4j:jar:2.5.1:compile
[INFO] | +- org.apache.shiro:shiro-spring:jar:1.9.1:compile
[INFO] | | +- org.apache.shiro:shiro-core:jar:1.9.1:compile
[INFO] | | | +- org.apache.shiro:shiro-crypto-hash:jar:1.9.1:compile
[INFO] | | | | \- org.apache.shiro:shiro-crypto-core:jar:1.9.1:compile
[INFO] | | | +- org.apache.shiro:shiro-crypto-cipher:jar:1.9.1:compile
[INFO] | | | +- org.apache.shiro:shiro-config-core:jar:1.9.1:compile
[INFO] | | | +- org.apache.shiro:shiro-config-ogdl:jar:1.9.1:compile
[INFO] | | | \- org.apache.shiro:shiro-event:jar:1.9.1:compile
[INFO] | | \- org.apache.shiro:shiro-web:jar:1.9.1:compile
[INFO] | | \- org.owasp.encoder:encoder:jar:1.2.2:compile
[INFO] | +- org.springframework:spring-web:jar:5.2.10.RELEASE:compile
[INFO] | | \- org.springframework:spring-beans:jar:5.2.10.RELEASE:compile
[INFO] | +- junit:junit:jar:4.12:compile
[INFO] | +- io.netty:netty-all:jar:4.1.53.Final:compile
[INFO] | +- com.squareup.okio:okio:jar:2.2.2:compile
[INFO] | | \- org.jetbrains.kotlin:kotlin-stdlib:jar:1.3.72:runtime
[INFO] | | +- org.jetbrains.kotlin:kotlin-stdlib-common:jar:1.3.72:runtime
[INFO] | | \- org.jetbrains:annotations:jar:13.0:runtime
[INFO] | +- javax.xml.bind:jaxb-api:jar:2.3.1:compile
[INFO] | | \- javax.activation:javax.activation-api:jar:1.2.0:compile
[INFO] | \- commons-fileupload:commons-fileupload:jar:1.4:compile
[INFO] +- com.slin.zntrade:data:jar:1.0-SNAPSHOT:compile
[INFO] +- com.slin.zntrade:obs:jar:1.0-SNAPSHOT:compile
[INFO] | +- net.coobird:thumbnailator:jar:0.4.8:compile
[INFO] | +- com.huaweicloud:esdk-obs-java:jar:3.19.7:compile
[INFO] | | +- com.jamesmurty.utils:java-xmlbuilder:jar:1.1:compile
[INFO] | | +- com.squareup.okhttp3:okhttp:jar:3.14.9:compile
[INFO] | | +- com.fasterxml.jackson.core:jackson-core:jar:2.17.0:compile
[INFO] | | +- org.apache.logging.log4j:log4j-core:jar:2.13.3:compile
[INFO] | | \- org.apache.logging.log4j:log4j-api:jar:2.13.3:compile
[INFO] | \- org.springframework:spring-context:jar:5.2.10.RELEASE:compile
[INFO] | \- org.springframework:spring-expression:jar:5.2.10.RELEASE:compile
[INFO] +- com.slin.zntrade:generator:jar:1.0-SNAPSHOT:compile
[INFO] | +- org.apache.velocity:velocity-engine-core:jar:2.0:compile
[INFO] | +- org.freemarker:freemarker:jar:2.3.30:compile
[INFO] | +- com.ibeetl:beetl:jar:2.9.9:compile
[INFO] | | \- org.antlr:antlr4-runtime:jar:4.2:compile
[INFO] | | +- org.abego.treelayout:org.abego.treelayout.core:jar:1.0.1:compile
[INFO] | | \- org.antlr:antlr4-annotations:jar:4.2:compile
[INFO] | \- com.baomidou:mybatis-plus-generator:jar:3.4.1:compile
[INFO] | \- com.baomidou:mybatis-plus-extension:jar:3.4.1:compile
[INFO] | +- com.baomidou:mybatis-plus-core:jar:3.4.1:compile
[INFO] | | +- com.baomidou:mybatis-plus-annotation:jar:3.4.1:compile
[INFO] | | +- com.github.jsqlparser:jsqlparser:jar:3.2:compile
[INFO] | | \- org.mybatis:mybatis:jar:3.5.6:compile
[INFO] | \- org.mybatis:mybatis-spring:jar:2.0.5:compile
[INFO] +- com.slin.zntrade:admin-ui:jar:1.0-SNAPSHOT:compile
[INFO] +- org.springframework.boot:spring-boot-devtools:jar:2.3.5.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot:jar:2.3.5.RELEASE:compile
[INFO] | \- org.springframework.boot:spring-boot-autoconfigure:jar:2.3.5.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-starter-web:jar:2.3.5.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-starter:jar:2.3.5.RELEASE:compile
[INFO] | | +- org.springframework.boot:spring-boot-starter-logging:jar:2.3.5.RELEASE:compile
[INFO] | | | +- ch.qos.logback:logback-classic:jar:1.2.3:compile
[INFO] | | | | \- ch.qos.logback:logback-core:jar:1.2.3:compile
[INFO] | | | +- org.apache.logging.log4j:log4j-to-slf4j:jar:2.13.3:compile
[INFO] | | | \- org.slf4j:jul-to-slf4j:jar:1.7.30:compile
[INFO] | | +- jakarta.annotation:jakarta.annotation-api:jar:1.3.5:compile
[INFO] | | \- org.yaml:snakeyaml:jar:1.26:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-json:jar:2.3.5.RELEASE:compile
[INFO] | | +- com.fasterxml.jackson.datatype:jackson-datatype-jdk8:jar:2.11.3:compile
[INFO] | | +- com.fasterxml.jackson.datatype:jackson-datatype-jsr310:jar:2.11.3:compile
[INFO] | | \- com.fasterxml.jackson.module:jackson-module-parameter-names:jar:2.11.3:compile
[INFO] | +- org.springframework.boot:spring-boot-starter-tomcat:jar:2.3.5.RELEASE:compile
[INFO] | | +- org.apache.tomcat.embed:tomcat-embed-core:jar:9.0.39:compile
[INFO] | | +- org.glassfish:jakarta.el:jar:3.0.3:compile
[INFO] | | \- org.apache.tomcat.embed:tomcat-embed-websocket:jar:9.0.39:compile
[INFO] | \- org.springframework:spring-webmvc:jar:5.2.10.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-starter-jdbc:jar:2.3.5.RELEASE:compile
[INFO] | +- com.zaxxer:HikariCP:jar:3.4.5:compile
[INFO] | \- org.springframework:spring-jdbc:jar:5.2.10.RELEASE:compile
[INFO] | \- org.springframework:spring-tx:jar:5.2.10.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-starter-aop:jar:2.3.5.RELEASE:compile
[INFO] | +- org.springframework:spring-aop:jar:5.2.10.RELEASE:compile
[INFO] | \- org.aspectj:aspectjweaver:jar:1.9.6:compile
[INFO] +- org.springframework.boot:spring-boot-starter-test:jar:2.3.5.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-test:jar:2.3.5.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-test-autoconfigure:jar:2.3.5.RELEASE:compile
[INFO] | +- com.jayway.jsonpath:json-path:jar:2.4.0:compile
[INFO] | | \- net.minidev:json-smart:jar:2.3:compile
[INFO] | | \- net.minidev:accessors-smart:jar:1.2:compile
[INFO] | | \- org.ow2.asm:asm:jar:5.0.4:compile
[INFO] | +- jakarta.xml.bind:jakarta.xml.bind-api:jar:2.3.3:compile
[INFO] | | \- jakarta.activation:jakarta.activation-api:jar:1.2.2:compile
[INFO] | +- org.assertj:assertj-core:jar:3.16.1:compile
[INFO] | +- org.hamcrest:hamcrest:jar:2.2:compile
[INFO] | +- org.junit.jupiter:junit-jupiter:jar:5.6.3:compile
[INFO] | | +- org.junit.jupiter:junit-jupiter-api:jar:5.6.3:compile
[INFO] | | | +- org.opentest4j:opentest4j:jar:1.2.0:compile
[INFO] | | | \- org.junit.platform:junit-platform-commons:jar:1.6.3:compile
[INFO] | | +- org.junit.jupiter:junit-jupiter-params:jar:5.6.3:compile
[INFO] | | \- org.junit.jupiter:junit-jupiter-engine:jar:5.6.3:runtime
[INFO] | +- org.junit.vintage:junit-vintage-engine:jar:5.6.3:compile
[INFO] | | \- org.junit.platform:junit-platform-engine:jar:1.6.3:compile
[INFO] | +- org.mockito:mockito-junit-jupiter:jar:3.3.3:compile
[INFO] | +- org.skyscreamer:jsonassert:jar:1.5.0:compile
[INFO] | | \- com.vaadin.external.google:android-json:jar:0.0.20131108.vaadin1:compile
[INFO] | +- org.springframework:spring-core:jar:5.2.10.RELEASE:compile
[INFO] | | \- org.springframework:spring-jcl:jar:5.2.10.RELEASE:compile
[INFO] | +- org.springframework:spring-test:jar:5.2.10.RELEASE:compile
[INFO] | \- org.xmlunit:xmlunit-core:jar:2.7.0:compile
[INFO] +- org.springframework.boot:spring-boot-starter-cache:jar:2.3.5.RELEASE:compile
[INFO] | \- org.springframework:spring-context-support:jar:5.2.10.RELEASE:compile
[INFO] +- org.springframework.boot:spring-boot-starter-mail:jar:2.3.5.RELEASE:compile
[INFO] | \- com.sun.mail:jakarta.mail:jar:1.6.5:compile
[INFO] | \- com.sun.activation:jakarta.activation:jar:1.2.2:compile
[INFO] +- mysql:mysql-connector-java:jar:8.0.19:compile
[INFO] | \- com.google.protobuf:protobuf-java:jar:3.6.1:compile
[INFO] +- commons-io:commons-io:jar:2.6:compile
[INFO] +- io.springfox:springfox-swagger-ui:jar:2.9.2:compile
[INFO] | \- io.springfox:springfox-spring-web:jar:2.9.2:compile
[INFO] +- com.yunpian.sdk:yunpian-java-sdk:jar:1.2.6:compile
[INFO] | +- org.slf4j:slf4j-api:jar:1.7.30:compile
[INFO] | +- com.google.code.gson:gson:jar:2.8.6:compile
[INFO] | +- org.apache.httpcomponents:httpasyncclient:jar:4.1.4:compile
[INFO] | | +- org.apache.httpcomponents:httpcore:jar:4.4.13:compile
[INFO] | | \- org.apache.httpcomponents:httpcore-nio:jar:4.4.13:compile
[INFO] | +- org.apache.httpcomponents:httpasyncclient-cache:jar:4.1.2:compile
[INFO] | | \- org.apache.httpcomponents:httpclient-cache:jar:4.5.13:compile
[INFO] | \- org.apache.httpcomponents:httpmime:jar:4.5.13:compile
[INFO] +- com.aliyun.oss:aliyun-sdk-oss:jar:3.0.0:compile
[INFO] | +- org.apache.httpcomponents:httpclient:jar:4.5.13:compile
[INFO] | +- org.jdom:jdom:jar:1.1:compile
[INFO] | +- com.sun.jersey:jersey-json:jar:1.9:compile
[INFO] | | +- org.codehaus.jettison:jettison:jar:1.1:compile
[INFO] | | | \- stax:stax-api:jar:1.0.1:compile
[INFO] | | +- com.sun.xml.bind:jaxb-impl:jar:2.2.3-1:compile
[INFO] | | +- org.codehaus.jackson:jackson-core-asl:jar:1.8.3:compile
[INFO] | | +- org.codehaus.jackson:jackson-mapper-asl:jar:1.8.3:compile
[INFO] | | +- org.codehaus.jackson:jackson-jaxrs:jar:1.8.3:compile
[INFO] | | +- org.codehaus.jackson:jackson-xc:jar:1.8.3:compile
[INFO] | | \- com.sun.jersey:jersey-core:jar:1.9:compile
[INFO] | +- com.aliyun:aliyun-java-sdk-core:jar:3.4.0:compile
[INFO] | +- com.aliyun:aliyun-java-sdk-ram:jar:3.0.0:compile
[INFO] | +- com.aliyun:aliyun-java-sdk-sts:jar:3.0.0:compile
[INFO] | \- com.aliyun:aliyun-java-sdk-ecs:jar:4.2.0:compile
[INFO] +- org.projectlombok:lombok:jar:1.18.22:provided
[INFO] +- io.cucumber:cucumber-java:jar:5.1.3:test
[INFO] | +- io.cucumber:cucumber-core:jar:5.1.3:test
[INFO] | | +- io.cucumber:cucumber-gherkin:jar:5.1.3:test
[INFO] | | +- io.cucumber:cucumber-gherkin-vintage:jar:5.1.3:test
[INFO] | | +- io.cucumber:tag-expressions:jar:2.0.4:test
[INFO] | | +- io.cucumber:cucumber-expressions:jar:8.3.1:test
[INFO] | | +- io.cucumber:datatable:jar:3.2.1:test
[INFO] | | +- io.cucumber:cucumber-plugin:jar:5.1.3:test
[INFO] | | \- io.cucumber:docstring:jar:5.1.3:test
[INFO] | \- org.apiguardian:apiguardian-api:jar:1.1.0:compile
[INFO] +- io.cucumber:cucumber-junit:jar:5.1.3:test
[INFO] +- io.cucumber:cucumber-spring:jar:5.1.3:test
[INFO] +- com.google.zxing:core:jar:3.3.3:compile
[INFO] +- org.powermock:powermock-module-junit4:jar:2.0.9:test
[INFO] | +- org.powermock:powermock-module-junit4-common:jar:2.0.9:test
[INFO] | | +- org.powermock:powermock-reflect:jar:2.0.9:test
[INFO] | | | \- net.bytebuddy:byte-buddy-agent:jar:1.10.17:test
[INFO] | | \- org.powermock:powermock-core:jar:2.0.9:test
[INFO] | | \- org.javassist:javassist:jar:3.27.0-GA:test
[INFO] | \- org.hamcrest:hamcrest-core:jar:2.2:compile
[INFO] +- org.powermock:powermock-api-mockito2:jar:2.0.9:test
[INFO] | +- org.powermock:powermock-api-support:jar:2.0.9:test
[INFO] | \- org.mockito:mockito-core:jar:3.3.3:test
[INFO] | \- org.objenesis:objenesis:jar:2.6:test
[INFO] +- de.codecentric:spring-boot-admin-starter-client:jar:2.3.1:compile
[INFO] | \- de.codecentric:spring-boot-admin-client:jar:2.3.1:compile
[INFO] +- org.springframework.boot:spring-boot-starter-actuator:jar:2.3.5.RELEASE:compile
[INFO] | +- org.springframework.boot:spring-boot-actuator-autoconfigure:jar:2.3.5.RELEASE:compile
[INFO] | | \- org.springframework.boot:spring-boot-actuator:jar:2.3.5.RELEASE:compile
[INFO] | \- io.micrometer:micrometer-core:jar:1.5.6:compile
[INFO] | +- org.hdrhistogram:HdrHistogram:jar:2.1.12:compile
[INFO] | \- org.latencyutils:LatencyUtils:jar:2.0.3:runtime
[INFO] +- org.apache.shiro:shiro-ehcache:jar:1.9.1:compile
[INFO] | +- org.apache.shiro:shiro-cache:jar:1.9.1:compile
[INFO] | | \- org.apache.shiro:shiro-lang:jar:1.9.1:compile
[INFO] | \- net.sf.ehcache:ehcache-core:jar:2.6.11:compile
[INFO] +- com.github.javen205:IJPay-WxPay:jar:2.8.1:compile
[INFO] | \- com.github.javen205:IJPay-Core:jar:2.8.1:compile
[INFO] | +- com.google.zxing:javase:jar:3.5.0:compile
[INFO] | | +- com.beust:jcommander:jar:1.82:compile
[INFO] | | \- com.github.jai-imageio:jai-imageio-core:jar:1.4.0:runtime
[INFO] | \- com.github.xkzhangsan:xk-time:jar:3.2.3.Mini:compile
[INFO] +- com.github.javen205:IJPay-AliPay:jar:2.8.1:compile
[INFO] | \- com.alipay.sdk:alipay-sdk-java:jar:4.22.113.ALL:compile
[INFO] | \- dom4j:dom4j:jar:1.6.1:compile
[INFO] | \- xml-apis:xml-apis:jar:1.0.b2:compile
[INFO] +- com.github.javen205:IJPay-PayPal:jar:2.8.1:compile
[INFO] \- org.springframework.boot:spring-boot-starter-security:jar:2.3.5.RELEASE:compile
[INFO] +- org.springframework.security:spring-security-config:jar:5.3.5.RELEASE:compile
[INFO] | \- org.springframework.security:spring-security-core:jar:5.3.5.RELEASE:compile
[INFO] \- org.springframework.security:spring-security-web:jar:5.3.5.RELEASE:compile
解决方案:
根据 mvn dependency:tree 输出,可以看到项目中存在多个版本的 Jackson 依赖以及 Springfox 的版本不一致问题。这些问题导致 JsonKey 类无法加载。以下是详细的分析和解决步骤。
问题分析:
-
Jackson版本冲突:jackson-annotations版本:2.11.3jackson-databind版本:2.17.0jackson-core版本:2.17.0
jackson-annotations版本明显落后于databind和core,可能导致JsonKey类在新版本中存在,而旧版本中不存在。 -
Springfox版本问题:springfox-swagger2:2.9.2版本不兼容Spring Boot 2.3.x+。Springfox 2.x使用较老版本的Jackson,而Spring Boot 2.3.5.RELEASE使用较新版本的Jackson。
解决方案:
方案 1:对 Jackson 版本进行统一
- 在
pom.xml中手动添加Jackson依赖,并统一版本,例如:<dependencyManagement><dependencies><dependency><groupId>com.fasterxml.jackson.core</groupId><artifactId>jackson-annotations</artifactId><version>2.17.0</version></dependency><dependency><groupId>com.fasterxml.jackson.core</groupId><artifactId>jackson-databind</artifactId><version>2.17.0</version></dependency><dependency><groupId>com.fasterxml.jackson.core</groupId><artifactId>jackson-core</artifactId><version>2.17.0</version></dependency></dependencies> </dependencyManagement>
方案 2:升级 Springfox 版本
- 升级
springfox-swagger2和springfox-swagger-ui依赖为 3.x 版本:<dependency><groupId>io.springfox</groupId><artifactId>springfox-boot-starter</artifactId><version>3.0.0</version> </dependency> - 并删除以下旧版本:
<dependency><groupId>io.springfox</groupId><artifactId>springfox-swagger2</artifactId><version>2.9.2</version> </dependency> <dependency><groupId>io.springfox</groupId><artifactId>springfox-swagger-ui</artifactId><version>2.9.2</version> </dependency>
方案 3:替换 Springfox 为 springdoc-openapi(推荐)
Springdoc-openapi 是官方推荐的新替代方案:
- 添加
springdoc-openapi依赖:<dependency><groupId>org.springdoc</groupId><artifactId>springdoc-openapi-ui</artifactId><version>1.6.15</version> </dependency> springdoc-openapi与 Spring Boot 集成更好,自动生成/swagger-ui.html接口文档。
方案 4:排除冲突的 Jackson 依赖
- 修改
pom.xml,排除swagger-models中自带的jackson-annotations:<dependency><groupId>io.springfox</groupId><artifactId>springfox-swagger2</artifactId><version>2.9.2</version><exclusions><exclusion><groupId>com.fasterxml.jackson.core</groupId><artifactId>jackson-annotations</artifactId></exclusion></exclusions> </dependency>
推荐配置示例(使用 Springdoc)
<dependency><groupId>org.springdoc</groupId><artifactId>springdoc-openapi-ui</artifactId><version>1.6.15</version>
</dependency>
这样可避免 Springfox 带来的版本兼容问题。
总结
- 如果想继续使用
Springfox,建议升级到3.0.0版本并统一Jackson版本。 - 推荐使用
springdoc-openapi替换Springfox,简化依赖管理和 Spring Boot 版本兼容问题。
相关文章:
Spring Boot 项目启动报 NoClassDefFoundError 异常的原因分析与解决方案 - jackson 版本不一致
目录 报错: 问题分析: 解决方案: 方案 1:对 Jackson 版本进行统一 方案 2:升级 Springfox 版本 方案 3:替换 Springfox 为 springdoc-openapi(推荐) 方案 4:排除冲突的 Jack…...
原型与原型链
什么是原型(对象) 在JavaScript中,每个对象都具有一个原型对象prototype,目的是:利用原型对象实现在同一原型链中的原型方法共享 在理解原型对象前,需要先了解什么是构造函数 构造函数 用来初始化对象的…...
【Linux】信号处理
一、Linux系统信号 1、常见的系统信号 常见的Linux系统信号 信号值描述1SIGHUP挂起(hang up)进程2SIGINT中断进(interrupt)程3SIGQUIT停止(stop)进程9SIGKILL无条件终止(terminate)…...
5个不同类型的mysql数据库安装
各种社区版本下载官方地址:MySQL :: MySQL Community Downloads 一、在线YUM仓库(Linux) 选择 MySQL Yum Repository 选择对应版本下载仓库安装包(No thanks, just start my download.) 下载方法1:下载到本…...
python学习笔记—12—布尔类型、if语句
1. 布尔类型 (1) 定义 (2) 比较运算符 (3) 代码演示 1. 手动定义 bool_1 True bool_2 False print(f"bool_1的内容是:{bool_1}, 类型是:{type(bool_1)}") print(f"bool_2的内容是:{bool_2}, 类型是:{type(bool…...
分数阶傅里叶变换代码 MATLAB实现
function Faf myfrft(f, a) %分数阶傅里叶变换函数 %输入参数: %f:原始信号 %a:阶数 %输出结果: %原始信号的a阶傅里叶变换N length(f);%总采样点数 shft rem((0:N-1)fix(N/2),N)1;%此项等同于fftshift(1:N),起到翻…...
《数据结构》期末考试测试题【中】
《数据结构》期末考试测试题【中】 21.循环队列队空的判断条件为?22. 单链表的存储密度比1?23.单链表的那些操作的效率受链表长度的影响?24.顺序表中某元素的地址为?25.m叉树第K层的结点数为?26. 在双向循环链表某节点…...
openwrt 清缓存命令行
一、查看缓存 : free -m 二、清缓存:echo 3 > /proc/sys/vm/drop_caches 三、详解。 释放物理页缓存 echo 1 > /proc/sys/vm/drop_caches 释放可回收的slab对象,包含inode and dentry echo 2 > /proc/sys/vm/drop_caches 同时…...
RP2K:一个面向细粒度图像的大规模零售商品数据集
这是一种用于细粒度图像分类的新的大规模零售产品数据集。与以往专注于相对较少产品的数据集不同,我们收集了2000多种不同零售产品的35万张图像,这些图像直接在真实的零售商店的货架上拍摄。我们的数据集旨在推进零售对象识别的研究,该研究具…...
.NET Core FluentAPI
目录 约定配置 主要规则 两种配置方式 Data Annotation Fluent API Fluent API配置 Fluent API众多方法 选择 约定配置 主要规则 表名采用DbContext中的对应的DbSet的属性名。数据表列的名字采用实体类属性的名字,列的数据类型采用和实体类属性类型最兼容…...
【C++数据结构——查找】顺序查找(头歌实践教学平台习题)【合集】
目录😋 任务描述 相关知识 一、根据输入数据建立顺序表 二、顺序表的输出 三、顺序查找算法 测试说明 通关代码 测试结果 任务描述 本关任务:实现顺序查找的算法 相关知识 为了完成本关任务,你需要掌握: 根据输入数据建立…...
HTTP Scheme 通常指的是在 URL 中用于指定使用 HTTP 协议的方案(scheme)
HTTP Scheme 通常指的是在 URL 中用于指定使用 HTTP 协议的方案(scheme)。URL(统一资源定位符)中的 scheme 部分指明了访问资源所使用的协议。对于 HTTP,有两个主要的 scheme: - **http**:表示…...
基于Matlab的变压器仿真模型建模方法(13):单相升压自耦变压器的等效电路和仿真模型
1.单相升压自耦变压器的基本方程和等效电路 单相升压自耦变压器的接线原理图如图1所示。在建立自耦变压器的基本方程时,仍然把它看成是从双绕组变压器演变而来。在图1中,设节点a到节点b部分的绕组的匝数为,对应于双绕组变压器的原边绕组;节点c到节点a部分的绕组的绕组匝数为…...
【Vue.js】监听器功能(EventListener)的实际应用【合集】
目录 🤔在实际开发过程中,我遇到了一个颇为棘手的小问题 😋解决这个小问题 问题出现的原因剖析 解决方法阐述 问题成功解决! 📖相关知识总结 基本概念 使用方法 实际应用场景 🤔在实际开发过程中…...
【Shell脚本】Docker构建Java项目,并自动停止原镜像容器,发布新版本
本文简述 经常使用docker部署SpringBoot 项目,因为自己的服务器小且项目简单,因此没有使用自动化部署。每次将jar包传到服务器后,需要手动构建,然后停止原有容器,并使用新的镜像启动,介于AI时代越来越懒的…...
【iOS Swift Moya 最新请求网络框架封装通用】
【iOS Swift Moya 最新请求网络框架封装通用】 前言框架结构1.API定义(TargetType)2. 配置MoyaProvider3. 网络管理器4. 使用示例注意事项进一步优化 前言 设计一个基于Moya的网络请求框架,可以提供灵活的网络请求管理,例如设置请…...
前端批量下载文件
背景 文件管理页面,后端只提供了一个根据 file_path 和 file_name 参数下载文件的API接口。产品需要支持用户多选之后的批量下载功能。 技术实现 基础代码 先调用下载接口,获取到二进制的文件流,然后通过 a 标签完成下载。 // return [r…...
【pytorch-lightning】架构一览
pytorch-lightning是基于pytorch的一个套壳项目,适配pytorch的版本同步更新速度很快。 它将训练的几个主要流程模块化,减少重复工作,同时让支持分布式训练,不同平台的训练迁移变得更加简单。 官网链接...
MongoDB相关使用问题
1.【报错】sort operation used more than the maximum 33554432 bytes of RAM. Add an index MongoDB 排序超过内存限制,限制最大为100M。 解决方式:将内存排序改为磁盘排序 正常用法:数据量大了再排序会报错 Autowired protected MongoO…...
DevSecOps自动化在安全关键型软件开发中的实践、Helix QAC Klocwork等SAST工具应用
DevSecOps自动化对于安全关键型软件开发至关重要。 那么,什么是DevSecOps自动化?具有哪些优势?为何助力安全关键型软件开发?让我们一起来深入了解~ 什么是DevSecOps自动化? DevSecOps自动化是指在软件开发生命周期的各…...
深入剖析AI大模型:大模型时代的 Prompt 工程全解析
今天聊的内容,我认为是AI开发里面非常重要的内容。它在AI开发里无处不在,当你对 AI 助手说 "用李白的风格写一首关于人工智能的诗",或者让翻译模型 "将这段合同翻译成商务日语" 时,输入的这句话就是 Prompt。…...
springboot 百货中心供应链管理系统小程序
一、前言 随着我国经济迅速发展,人们对手机的需求越来越大,各种手机软件也都在被广泛应用,但是对于手机进行数据信息管理,对于手机的各种软件也是备受用户的喜爱,百货中心供应链管理系统被用户普遍使用,为方…...
Lombok 的 @Data 注解失效,未生成 getter/setter 方法引发的HTTP 406 错误
HTTP 状态码 406 (Not Acceptable) 和 500 (Internal Server Error) 是两类完全不同的错误,它们的含义、原因和解决方法都有显著区别。以下是详细对比: 1. HTTP 406 (Not Acceptable) 含义: 客户端请求的内容类型与服务器支持的内容类型不匹…...
FFmpeg 低延迟同屏方案
引言 在实时互动需求激增的当下,无论是在线教育中的师生同屏演示、远程办公的屏幕共享协作,还是游戏直播的画面实时传输,低延迟同屏已成为保障用户体验的核心指标。FFmpeg 作为一款功能强大的多媒体框架,凭借其灵活的编解码、数据…...
Qwen3-Embedding-0.6B深度解析:多语言语义检索的轻量级利器
第一章 引言:语义表示的新时代挑战与Qwen3的破局之路 1.1 文本嵌入的核心价值与技术演进 在人工智能领域,文本嵌入技术如同连接自然语言与机器理解的“神经突触”——它将人类语言转化为计算机可计算的语义向量,支撑着搜索引擎、推荐系统、…...
优选算法第十二讲:队列 + 宽搜 优先级队列
优选算法第十二讲:队列 宽搜 && 优先级队列 1.N叉树的层序遍历2.二叉树的锯齿型层序遍历3.二叉树最大宽度4.在每个树行中找最大值5.优先级队列 -- 最后一块石头的重量6.数据流中的第K大元素7.前K个高频单词8.数据流的中位数 1.N叉树的层序遍历 2.二叉树的锯…...
如何更改默认 Crontab 编辑器 ?
在 Linux 领域中,crontab 是您可能经常遇到的一个术语。这个实用程序在类 unix 操作系统上可用,用于调度在预定义时间和间隔自动执行的任务。这对管理员和高级用户非常有益,允许他们自动执行各种系统任务。 编辑 Crontab 文件通常使用文本编…...
RSS 2025|从说明书学习复杂机器人操作任务:NUS邵林团队提出全新机器人装配技能学习框架Manual2Skill
视觉语言模型(Vision-Language Models, VLMs),为真实环境中的机器人操作任务提供了极具潜力的解决方案。 尽管 VLMs 取得了显著进展,机器人仍难以胜任复杂的长时程任务(如家具装配),主要受限于人…...
从 GreenPlum 到镜舟数据库:杭银消费金融湖仓一体转型实践
作者:吴岐诗,杭银消费金融大数据应用开发工程师 本文整理自杭银消费金融大数据应用开发工程师在StarRocks Summit Asia 2024的分享 引言:融合数据湖与数仓的创新之路 在数字金融时代,数据已成为金融机构的核心竞争力。杭银消费金…...
通过 Ansible 在 Windows 2022 上安装 IIS Web 服务器
拓扑结构 这是一个用于通过 Ansible 部署 IIS Web 服务器的实验室拓扑。 前提条件: 在被管理的节点上安装WinRm 准备一张自签名的证书 开放防火墙入站tcp 5985 5986端口 准备自签名证书 PS C:\Users\azureuser> $cert New-SelfSignedCertificate -DnsName &…...
