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.3
jackson-databind
版本:2.17.0
jackson-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自动化是指在软件开发生命周期的各…...
分布式Session处理的五大主流方案解析
在分布式环境下,Session 处理的核心挑战是确保用户请求在不同服务器间流转时能保持会话状态一致。以下是主流解决方案及优缺点分析: 🔐 一、集中存储方案(主流推荐) Redis/Memcached 存储 原理:将 Session…...

如何从浏览器中导出网站证书
以导出 GitHub 证书为例,点击 小锁 点击 导出 注意:这里需要根据你想要证书格式手动加上后缀名,我的是加 .crt 双击文件打开...

3. 简述node.js特性与底层原理
😺😺😺 一、Node.js 底层原理(简化版) Node.js 是一个 基于 Chrome V8 引擎构建的 JavaScript 运行时,底层核心由几部分组成: 组成部分简要说明 1.V8 引擎 将 JS 编译成机器码执行࿰…...

手写Promise.all
前言 之前在看远方os大佬直播的时候看到有让手写的Promise.all的问题,然后心血来潮自己准备手写一个 开始 首先,我们需要明确原本js提供的Promise.all的特性 Promise.all返回的是一个Promise如果传入的数据中有一个reject即整个all返回的就是reject&…...

Imprompter: Tricking LLM Agents into Improper Tool Use
原文:Imprompter: Tricking LLM Agents into Improper Tool Use 代码:Reapor-Yurnero/imprompter: Codebase of https://arxiv.org/abs/2410.14923 实机演示:Imprompter 摘要: 新兴发展的Agent可以将LLM与外部资源工具相结合&a…...

产品经理课程(九)
从需求到功能设计 (一)复习 产品规划:产品定位、阶段性计划 产品定位:产品画布(9个步骤;最重要的是先解决什么问题) (Roadmap)目标要素:时间、事项、里程碑…...
【方案分享】蓝牙Beacon定位精度优化(包含KF、EKF与UKF卡尔曼滤波算法详解)
蓝牙Beacon定位精度优化:KF、EKF与UKF卡尔曼滤波算法详解 标签:蓝牙定位|Beacon|卡尔曼滤波|UKF|EKF|RSSI|室内定位|滤波算法|精度优化 相关分享:…...
NoSQL 之Redis哨兵
目录 一、Redis 哨兵模式概述 (一)背景与核心目标 (二)基本架构组成 (三)核心功能 二、哨兵模式实现原理 (一)配置关键参数 (二)哨兵节点的定时任务 …...
极空间z4pro配置gitea mysql,内网穿透
极空间z4pro配置gitea mysql等记录,内网穿透 1、mysql、gitea镜像下载,极空间不成功,先用自己电脑科学后下载镜像,拉取代码: docker pull --platform linux/amd64 gitea/gitea:1.23 docker pull --platform linux/amd64 mysql:5.…...

【Zephyr 系列 11】使用 NVS 实现 BLE 参数持久化:掉电不丢配置,开机自动加载
🧠关键词:Zephyr、NVS、非易失存储、掉电保持、Flash、AT命令保存、配置管理 📌目标读者:希望在 BLE 模块中实现掉电不丢配置、支持产测参数注入与自动加载功能的开发者 📊文章长度:约 5200 字 🔍 为什么要使用 NVS? 在实际产品中,我们经常面临以下场景: 用户或…...