java.lang.NoClassDefFoundError: org/springframework/beans/factory/config/YamlProcessor$StrictMapAppe

简介: java.lang.NoClassDefFoundError: org/springframework/beans/factory/config/YamlProcessor$StrictMapAppe

使用SpringBoot的yml文件配置时踩的一个坑 :报错如下

E:\java\jdk\bin\java.exe -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true -javaagent:E:\idea\lib\idea_rt.jar=50290:E:\idea\bin -Dfile.encoding=UTF-8 -classpath E:\java\jdk\jre\lib\charsets.jar;E:\java\jdk\jre\lib\deploy.jar;E:\java\jdk\jre\lib\ext\access-bridge-64.jar;E:\java\jdk\jre\lib\ext\cldrdata.jar;E:\java\jdk\jre\lib\ext\dnsns.jar;E:\java\jdk\jre\lib\ext\jaccess.jar;E:\java\jdk\jre\lib\ext\jfxrt.jar;E:\java\jdk\jre\lib\ext\localedata.jar;E:\java\jdk\jre\lib\ext\nashorn.jar;E:\java\jdk\jre\lib\ext\sunec.jar;E:\java\jdk\jre\lib\ext\sunjce_provider.jar;E:\java\jdk\jre\lib\ext\sunmscapi.jar;E:\java\jdk\jre\lib\ext\sunpkcs11.jar;E:\java\jdk\jre\lib\ext\zipfs.jar;E:\java\jdk\jre\lib\javaws.jar;E:\java\jdk\jre\lib\jce.jar;E:\java\jdk\jre\lib\jfr.jar;E:\java\jdk\jre\lib\jfxswt.jar;E:\java\jdk\jre\lib\jsse.jar;E:\java\jdk\jre\lib\management-agent.jar;E:\java\jdk\jre\lib\plugin.jar;E:\java\jdk\jre\lib\resources.jar;E:\java\jdk\jre\lib\rt.jar;F:\project\java\resource-app\target\classes;F:\repo\com\alibaba\druid-spring-boot-starter\1.2.6\druid-spring-boot-starter-1.2.6.jar;F:\repo\com\alibaba\druid\1.2.6\druid-1.2.6.jar;F:\repo\org\slf4j\slf4j-api\1.7.25\slf4j-api-1.7.25.jar;F:\repo\org\springframework\boot\spring-boot-autoconfigure\1.5.12.RELEASE\spring-boot-autoconfigure-1.5.12.RELEASE.jar;F:\repo\org\springframework\boot\spring-boot\1.5.12.RELEASE\spring-boot-1.5.12.RELEASE.jar;F:\repo\eu\bitwalker\UserAgentUtils\1.21\UserAgentUtils-1.21.jar;F:\repo\org\mybatis\spring\boot\mybatis-spring-boot-starter\2.1.4\mybatis-spring-boot-starter-2.1.4.jar;F:\repo\org\springframework\boot\spring-boot-starter\2.4.0\spring-boot-starter-2.4.0.jar;F:\repo\org\springframework\boot\spring-boot-starter-logging\2.4.0\spring-boot-starter-logging-2.4.0.jar;F:\repo\ch\qos\logback\logback-classic\1.2.3\logback-classic-1.2.3.jar;F:\repo\ch\qos\logback\logback-core\1.2.3\logback-core-1.2.3.jar;F:\repo\org\apache\logging\log4j\log4j-to-slf4j\2.13.3\log4j-to-slf4j-2.13.3.jar;F:\repo\org\apache\logging\log4j\log4j-api\2.13.3\log4j-api-2.13.3.jar;F:\repo\org\slf4j\jul-to-slf4j\1.7.30\jul-to-slf4j-1.7.30.jar;F:\repo\jakarta\annotation\jakarta.annotation-api\1.3.5\jakarta.annotation-api-1.3.5.jar;F:\repo\org\springframework\spring-core\5.3.1\spring-core-5.3.1.jar;F:\repo\org\springframework\spring-jcl\5.3.1\spring-jcl-5.3.1.jar;F:\repo\org\yaml\snakeyaml\1.27\snakeyaml-1.27.jar;F:\repo\org\springframework\boot\spring-boot-starter-jdbc\2.4.0\spring-boot-starter-jdbc-2.4.0.jar;F:\repo\com\zaxxer\HikariCP\3.4.5\HikariCP-3.4.5.jar;F:\repo\org\springframework\spring-jdbc\5.3.1\spring-jdbc-5.3.1.jar;F:\repo\org\springframework\spring-tx\5.3.1\spring-tx-5.3.1.jar;F:\repo\org\mybatis\spring\boot\mybatis-spring-boot-autoconfigure\2.1.4\mybatis-spring-boot-autoconfigure-2.1.4.jar;F:\repo\org\mybatis\mybatis\3.5.6\mybatis-3.5.6.jar;F:\repo\org\mybatis\mybatis-spring\2.0.6\mybatis-spring-2.0.6.jar;F:\repo\com\github\pagehelper\pagehelper-spring-boot-starter\1.3.1\pagehelper-spring-boot-starter-1.3.1.jar;F:\repo\com\github\pagehelper\pagehelper-spring-boot-autoconfigure\1.3.1\pagehelper-spring-boot-autoconfigure-1.3.1.jar;F:\repo\com\github\pagehelper\pagehelper\5.2.1\pagehelper-5.2.1.jar;F:\repo\com\github\jsqlparser\jsqlparser\4.0\jsqlparser-4.0.jar;F:\repo\com\github\oshi\oshi-core\5.8.0\oshi-core-5.8.0.jar;F:\repo\net\java\dev\jna\jna\5.8.0\jna-5.8.0.jar;F:\repo\net\java\dev\jna\jna-platform\5.8.0\jna-platform-5.8.0.jar;F:\repo\io\springfox\springfox-boot-starter\3.0.0\springfox-boot-starter-3.0.0.jar;F:\repo\io\springfox\springfox-oas\3.0.0\springfox-oas-3.0.0.jar;F:\repo\io\swagger\core\v3\swagger-annotations\2.1.2\swagger-annotations-2.1.2.jar;F:\repo\io\swagger\core\v3\swagger-models\2.1.2\swagger-models-2.1.2.jar;F:\repo\io\springfox\springfox-spi\3.0.0\springfox-spi-3.0.0.jar;F:\repo\io\springfox\springfox-schema\3.0.0\springfox-schema-3.0.0.jar;F:\repo\io\springfox\springfox-core\3.0.0\springfox-core-3.0.0.jar;F:\repo\net\bytebuddy\byte-buddy\1.10.11\byte-buddy-1.10.11.jar;F:\repo\io\springfox\springfox-spring-web\3.0.0\springfox-spring-web-3.0.0.jar;F:\repo\io\github\classgraph\classgraph\4.8.83\classgraph-4.8.83.jar;F:\repo\io\springfox\springfox-spring-webmvc\3.0.0\springfox-spring-webmvc-3.0.0.jar;F:\repo\io\springfox\springfox-spring-webflux\3.0.0\springfox-spring-webflux-3.0.0.jar;F:\repo\io\springfox\springfox-swagger-common\3.0.0\springfox-swagger-common-3.0.0.jar;F:\repo\org\mapstruct\mapstruct\1.3.1.Final\mapstruct-1.3.1.Final.jar;F:\repo\io\springfox\springfox-data-rest\3.0.0\springfox-data-rest-3.0.0.jar;F:\repo\io\springfox\springfox-bean-validators\3.0.0\springfox-bean-validators-3.0.0.jar;F:\repo\io\springfox\springfox-swagger2\3.0.0\springfox-swagger2-3.0.0.jar;F:\repo\io\springfox\springfox-swagger-ui\3.0.0\springfox-swagger-ui-3.0.0.jar;F:\repo\com\fasterxml\classmate\1.5.1\classmate-1.5.1.jar;F:\repo\org\springframework\plugin\spring-plugin-core\2.0.0.RELEASE\spring-plugin-core-2.0.0.RELEASE.jar;F:\repo\org\springframework\spring-beans\5.2.0.RELEASE\spring-beans-5.2.0.RELEASE.jar;F:\repo\org\springframework\spring-context\5.2.0.RELEASE\spring-context-5.2.0.RELEASE.jar;F:\repo\org\springframework\plugin\spring-plugin-metadata\2.0.0.RELEASE\spring-plugin-metadata-2.0.0.RELEASE.jar;F:\repo\io\swagger\swagger-models\1.6.2\swagger-models-1.6.2.jar;F:\repo\com\fasterxml\jackson\core\jackson-annotations\2.11.1\jackson-annotations-2.11.1.jar;F:\repo\io\swagger\swagger-annotations\1.6.2\swagger-annotations-1.6.2.jar;F:\repo\commons-io\commons-io\2.11.0\commons-io-2.11.0.jar;F:\repo\commons-fileupload\commons-fileupload\1.4\commons-fileupload-1.4.jar;F:\repo\org\apache\poi\poi-ooxml\4.1.2\poi-ooxml-4.1.2.jar;F:\repo\org\apache\poi\poi\4.1.2\poi-4.1.2.jar;F:\repo\commons-codec\commons-codec\1.13\commons-codec-1.13.jar;F:\repo\org\apache\commons\commons-collections4\4.4\commons-collections4-4.4.jar;F:\repo\org\apache\commons\commons-math3\3.6.1\commons-math3-3.6.1.jar;F:\repo\com\zaxxer\SparseBitSet\1.2\SparseBitSet-1.2.jar;F:\repo\org\apache\poi\poi-ooxml-schemas\4.1.2\poi-ooxml-schemas-4.1.2.jar;F:\repo\org\apache\xmlbeans\xmlbeans\3.1.0\xmlbeans-3.1.0.jar;F:\repo\org\apache\commons\commons-compress\1.19\commons-compress-1.19.jar;F:\repo\com\github\virtuald\curvesapi\1.06\curvesapi-1.06.jar;F:\repo\org\apache\velocity\velocity\1.7\velocity-1.7.jar;F:\repo\commons-lang\commons-lang\2.4\commons-lang-2.4.jar;F:\repo\commons-collections\commons-collections\3.2.2\commons-collections-3.2.2.jar;F:\repo\com\alibaba\fastjson\1.2.76\fastjson-1.2.76.jar;F:\repo\io\jsonwebtoken\jjwt\0.9.1\jjwt-0.9.1.jar;F:\repo\com\fasterxml\jackson\core\jackson-databind\2.9.6\jackson-databind-2.9.6.jar;F:\repo\com\fasterxml\jackson\core\jackson-core\2.9.6\jackson-core-2.9.6.jar;F:\repo\com\github\penggle\kaptcha\2.3.2\kaptcha-2.3.2.jar;F:\repo\javax\servlet\javax.servlet-api\3.1.0\javax.servlet-api-3.1.0.jar;F:\repo\com\jhlabs\filters\2.0.235-1\filters-2.0.235-1.jar;F:\repo\org\apache\commons\commons-lang3\3.12.0\commons-lang3-3.12.0.jar;F:\repo\org\springframework\boot\spring-boot-starter-security\2.5.4\spring-boot-starter-security-2.5.4.jar;F:\repo\org\springframework\spring-aop\5.3.9\spring-aop-5.3.9.jar;F:\repo\org\springframework\security\spring-security-config\5.5.2\spring-security-config-5.5.2.jar;F:\repo\org\springframework\security\spring-security-core\5.5.2\spring-security-core-5.5.2.jar;F:\repo\org\springframework\security\spring-security-crypto\5.5.2\spring-security-crypto-5.5.2.jar;F:\repo\org\springframework\security\spring-security-web\5.5.2\spring-security-web-5.5.2.jar;F:\repo\org\springframework\spring-expression\5.3.9\spring-expression-5.3.9.jar;F:\repo\org\springframework\spring-web\5.3.9\spring-web-5.3.9.jar com.zkxt.RuoYiApplication
14:50:28.766 [main] DEBUG org.springframework.boot.logging.ClasspathLoggingApplicationListener - Application failed to start with classpath: [file:/E:/java/jdk/jre/lib/charsets.jar, file:/E:/java/jdk/jre/lib/deploy.jar, file:/E:/java/jdk/jre/lib/ext/access-bridge-64.jar, file:/E:/java/jdk/jre/lib/ext/cldrdata.jar, file:/E:/java/jdk/jre/lib/ext/dnsns.jar, file:/E:/java/jdk/jre/lib/ext/jaccess.jar, file:/E:/java/jdk/jre/lib/ext/jfxrt.jar, file:/E:/java/jdk/jre/lib/ext/localedata.jar, file:/E:/java/jdk/jre/lib/ext/nashorn.jar, file:/E:/java/jdk/jre/lib/ext/sunec.jar, file:/E:/java/jdk/jre/lib/ext/sunjce_provider.jar, file:/E:/java/jdk/jre/lib/ext/sunmscapi.jar, file:/E:/java/jdk/jre/lib/ext/sunpkcs11.jar, file:/E:/java/jdk/jre/lib/ext/zipfs.jar, file:/E:/java/jdk/jre/lib/javaws.jar, file:/E:/java/jdk/jre/lib/jce.jar, file:/E:/java/jdk/jre/lib/jfr.jar, file:/E:/java/jdk/jre/lib/jfxswt.jar, file:/E:/java/jdk/jre/lib/jsse.jar, file:/E:/java/jdk/jre/lib/management-agent.jar, file:/E:/java/jdk/jre/lib/plugin.jar, file:/E:/java/jdk/jre/lib/resources.jar, file:/E:/java/jdk/jre/lib/rt.jar, file:/F:/project/java/resource-app/target/classes/, file:/F:/repo/com/alibaba/druid-spring-boot-starter/1.2.6/druid-spring-boot-starter-1.2.6.jar, file:/F:/repo/com/alibaba/druid/1.2.6/druid-1.2.6.jar, file:/F:/repo/org/slf4j/slf4j-api/1.7.25/slf4j-api-1.7.25.jar, file:/F:/repo/org/springframework/boot/spring-boot-autoconfigure/1.5.12.RELEASE/spring-boot-autoconfigure-1.5.12.RELEASE.jar, file:/F:/repo/org/springframework/boot/spring-boot/1.5.12.RELEASE/spring-boot-1.5.12.RELEASE.jar, file:/F:/repo/eu/bitwalker/UserAgentUtils/1.21/UserAgentUtils-1.21.jar, file:/F:/repo/org/mybatis/spring/boot/mybatis-spring-boot-starter/2.1.4/mybatis-spring-boot-starter-2.1.4.jar, file:/F:/repo/org/springframework/boot/spring-boot-starter/2.4.0/spring-boot-starter-2.4.0.jar, file:/F:/repo/org/springframework/boot/spring-boot-starter-logging/2.4.0/spring-boot-starter-logging-2.4.0.jar, file:/F:/repo/ch/qos/logback/logback-classic/1.2.3/logback-classic-1.2.3.jar, file:/F:/repo/ch/qos/logback/logback-core/1.2.3/logback-core-1.2.3.jar, file:/F:/repo/org/apache/logging/log4j/log4j-to-slf4j/2.13.3/log4j-to-slf4j-2.13.3.jar, file:/F:/repo/org/apache/logging/log4j/log4j-api/2.13.3/log4j-api-2.13.3.jar, file:/F:/repo/org/slf4j/jul-to-slf4j/1.7.30/jul-to-slf4j-1.7.30.jar, file:/F:/repo/jakarta/annotation/jakarta.annotation-api/1.3.5/jakarta.annotation-api-1.3.5.jar, file:/F:/repo/org/springframework/spring-core/5.3.1/spring-core-5.3.1.jar, file:/F:/repo/org/springframework/spring-jcl/5.3.1/spring-jcl-5.3.1.jar, file:/F:/repo/org/yaml/snakeyaml/1.27/snakeyaml-1.27.jar, file:/F:/repo/org/springframework/boot/spring-boot-starter-jdbc/2.4.0/spring-boot-starter-jdbc-2.4.0.jar, file:/F:/repo/com/zaxxer/HikariCP/3.4.5/HikariCP-3.4.5.jar, file:/F:/repo/org/springframework/spring-jdbc/5.3.1/spring-jdbc-5.3.1.jar, file:/F:/repo/org/springframework/spring-tx/5.3.1/spring-tx-5.3.1.jar, file:/F:/repo/org/mybatis/spring/boot/mybatis-spring-boot-autoconfigure/2.1.4/mybatis-spring-boot-autoconfigure-2.1.4.jar, file:/F:/repo/org/mybatis/mybatis/3.5.6/mybatis-3.5.6.jar, file:/F:/repo/org/mybatis/mybatis-spring/2.0.6/mybatis-spring-2.0.6.jar, file:/F:/repo/com/github/pagehelper/pagehelper-spring-boot-starter/1.3.1/pagehelper-spring-boot-starter-1.3.1.jar, file:/F:/repo/com/github/pagehelper/pagehelper-spring-boot-autoconfigure/1.3.1/pagehelper-spring-boot-autoconfigure-1.3.1.jar, file:/F:/repo/com/github/pagehelper/pagehelper/5.2.1/pagehelper-5.2.1.jar, file:/F:/repo/com/github/jsqlparser/jsqlparser/4.0/jsqlparser-4.0.jar, file:/F:/repo/com/github/oshi/oshi-core/5.8.0/oshi-core-5.8.0.jar, file:/F:/repo/net/java/dev/jna/jna/5.8.0/jna-5.8.0.jar, file:/F:/repo/net/java/dev/jna/jna-platform/5.8.0/jna-platform-5.8.0.jar, file:/F:/repo/io/springfox/springfox-boot-starter/3.0.0/springfox-boot-starter-3.0.0.jar, file:/F:/repo/io/springfox/springfox-oas/3.0.0/springfox-oas-3.0.0.jar, file:/F:/repo/io/swagger/core/v3/swagger-annotations/2.1.2/swagger-annotations-2.1.2.jar, file:/F:/repo/io/swagger/core/v3/swagger-models/2.1.2/swagger-models-2.1.2.jar, file:/F:/repo/io/springfox/springfox-spi/3.0.0/springfox-spi-3.0.0.jar, file:/F:/repo/io/springfox/springfox-schema/3.0.0/springfox-schema-3.0.0.jar, file:/F:/repo/io/springfox/springfox-core/3.0.0/springfox-core-3.0.0.jar, file:/F:/repo/net/bytebuddy/byte-buddy/1.10.11/byte-buddy-1.10.11.jar, file:/F:/repo/io/springfox/springfox-spring-web/3.0.0/springfox-spring-web-3.0.0.jar, file:/F:/repo/io/github/classgraph/classgraph/4.8.83/classgraph-4.8.83.jar, file:/F:/repo/io/springfox/springfox-spring-webmvc/3.0.0/springfox-spring-webmvc-3.0.0.jar, file:/F:/repo/io/springfox/springfox-spring-webflux/3.0.0/springfox-spring-webflux-3.0.0.jar, file:/F:/repo/io/springfox/springfox-swagger-common/3.0.0/springfox-swagger-common-3.0.0.jar, file:/F:/repo/org/mapstruct/mapstruct/1.3.1.Final/mapstruct-1.3.1.Final.jar, file:/F:/repo/io/springfox/springfox-data-rest/3.0.0/springfox-data-rest-3.0.0.jar, file:/F:/repo/io/springfox/springfox-bean-validators/3.0.0/springfox-bean-validators-3.0.0.jar, file:/F:/repo/io/springfox/springfox-swagger2/3.0.0/springfox-swagger2-3.0.0.jar, file:/F:/repo/io/springfox/springfox-swagger-ui/3.0.0/springfox-swagger-ui-3.0.0.jar, file:/F:/repo/com/fasterxml/classmate/1.5.1/classmate-1.5.1.jar, file:/F:/repo/org/springframework/plugin/spring-plugin-core/2.0.0.RELEASE/spring-plugin-core-2.0.0.RELEASE.jar, file:/F:/repo/org/springframework/spring-beans/5.2.0.RELEASE/spring-beans-5.2.0.RELEASE.jar, file:/F:/repo/org/springframework/spring-context/5.2.0.RELEASE/spring-context-5.2.0.RELEASE.jar, file:/F:/repo/org/springframework/plugin/spring-plugin-metadata/2.0.0.RELEASE/spring-plugin-metadata-2.0.0.RELEASE.jar, file:/F:/repo/io/swagger/swagger-models/1.6.2/swagger-models-1.6.2.jar, file:/F:/repo/com/fasterxml/jackson/core/jackson-annotations/2.11.1/jackson-annotations-2.11.1.jar, file:/F:/repo/io/swagger/swagger-annotations/1.6.2/swagger-annotations-1.6.2.jar, file:/F:/repo/commons-io/commons-io/2.11.0/commons-io-2.11.0.jar, file:/F:/repo/commons-fileupload/commons-fileupload/1.4/commons-fileupload-1.4.jar, file:/F:/repo/org/apache/poi/poi-ooxml/4.1.2/poi-ooxml-4.1.2.jar, file:/F:/repo/org/apache/poi/poi/4.1.2/poi-4.1.2.jar, file:/F:/repo/commons-codec/commons-codec/1.13/commons-codec-1.13.jar, file:/F:/repo/org/apache/commons/commons-collections4/4.4/commons-collections4-4.4.jar, file:/F:/repo/org/apache/commons/commons-math3/3.6.1/commons-math3-3.6.1.jar, file:/F:/repo/com/zaxxer/SparseBitSet/1.2/SparseBitSet-1.2.jar, file:/F:/repo/org/apache/poi/poi-ooxml-schemas/4.1.2/poi-ooxml-schemas-4.1.2.jar, file:/F:/repo/org/apache/xmlbeans/xmlbeans/3.1.0/xmlbeans-3.1.0.jar, file:/F:/repo/org/apache/commons/commons-compress/1.19/commons-compress-1.19.jar, file:/F:/repo/com/github/virtuald/curvesapi/1.06/curvesapi-1.06.jar, file:/F:/repo/org/apache/velocity/velocity/1.7/velocity-1.7.jar, file:/F:/repo/commons-lang/commons-lang/2.4/commons-lang-2.4.jar, file:/F:/repo/commons-collections/commons-collections/3.2.2/commons-collections-3.2.2.jar, file:/F:/repo/com/alibaba/fastjson/1.2.76/fastjson-1.2.76.jar, file:/F:/repo/io/jsonwebtoken/jjwt/0.9.1/jjwt-0.9.1.jar, file:/F:/repo/com/fasterxml/jackson/core/jackson-databind/2.9.6/jackson-databind-2.9.6.jar, file:/F:/repo/com/fasterxml/jackson/core/jackson-core/2.9.6/jackson-core-2.9.6.jar, file:/F:/repo/com/github/penggle/kaptcha/2.3.2/kaptcha-2.3.2.jar, file:/F:/repo/javax/servlet/javax.servlet-api/3.1.0/javax.servlet-api-3.1.0.jar, file:/F:/repo/com/jhlabs/filters/2.0.235-1/filters-2.0.235-1.jar, file:/F:/repo/org/apache/commons/commons-lang3/3.12.0/commons-lang3-3.12.0.jar, file:/F:/repo/org/springframework/boot/spring-boot-starter-security/2.5.4/spring-boot-starter-security-2.5.4.jar, file:/F:/repo/org/springframework/spring-aop/5.3.9/spring-aop-5.3.9.jar, file:/F:/repo/org/springframework/security/spring-security-config/5.5.2/spring-security-config-5.5.2.jar, file:/F:/repo/org/springframework/security/spring-security-core/5.5.2/spring-security-core-5.5.2.jar, file:/F:/repo/org/springframework/security/spring-security-crypto/5.5.2/spring-security-crypto-5.5.2.jar, file:/F:/repo/org/springframework/security/spring-security-web/5.5.2/spring-security-web-5.5.2.jar, file:/F:/repo/org/springframework/spring-expression/5.3.9/spring-expression-5.3.9.jar, file:/F:/repo/org/springframework/spring-web/5.3.9/spring-web-5.3.9.jar, file:/E:/idea/lib/idea_rt.jar]
14:50:28.771 [main] ERROR org.springframework.boot.SpringApplication - Application startup failed
java.lang.NoClassDefFoundError: org/springframework/beans/factory/config/YamlProcessor$StrictMapAppenderConstructor
  at org.springframework.boot.env.YamlPropertySourceLoader$Processor.createYaml(YamlPropertySourceLoader.java:86)
  at org.springframework.beans.factory.config.YamlProcessor.process(YamlProcessor.java:132)
  at org.springframework.boot.env.YamlPropertySourceLoader$Processor.process(YamlPropertySourceLoader.java:101)
  at org.springframework.boot.env.YamlPropertySourceLoader.load(YamlPropertySourceLoader.java:58)
  at org.springframework.boot.env.PropertySourcesLoader.load(PropertySourcesLoader.java:128)
  at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.doLoadIntoGroup(ConfigFileApplicationListener.java:490)
  at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.loadIntoGroup(ConfigFileApplicationListener.java:473)
  at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.load(ConfigFileApplicationListener.java:465)
  at org.springframework.boot.context.config.ConfigFileApplicationListener$Loader.load(ConfigFileApplicationListener.java:386)
  at org.springframework.boot.context.config.ConfigFileApplicationListener.addPropertySources(ConfigFileApplicationListener.java:225)
  at org.springframework.boot.context.config.ConfigFileApplicationListener.postProcessEnvironment(ConfigFileApplicationListener.java:195)
  at org.springframework.boot.context.config.ConfigFileApplicationListener.onApplicationEnvironmentPreparedEvent(ConfigFileApplicationListener.java:182)
  at org.springframework.boot.context.config.ConfigFileApplicationListener.onApplicationEvent(ConfigFileApplicationListener.java:168)
  at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)
  at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)
  at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
  at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:127)
  at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:74)
  at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:54)
  at org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:325)
  at org.springframework.boot.SpringApplication.run(SpringApplication.java:296)
  at org.springframework.boot.SpringApplication.run(SpringApplication.java:1118)
  at org.springframework.boot.SpringApplication.run(SpringApplication.java:1107)
  
Caused by: java.lang.ClassNotFoundException: org.springframework.beans.factory.config.YamlProcessor$StrictMapAppenderConstructor
  at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
  ... 24 common frames omitted
 
Process finished with exit code 1

解决:

1.检查配置文件是否符合规范

2.缺少依赖包

org.yaml.snakeyaml包

相关文章
|
6月前
|
数据安全/隐私保护
java.nio.file.AccessDeniedException: /home/soft/elasticsearch-6.8.0/config/jvm.options
java.nio.file.AccessDeniedException: /home/soft/elasticsearch-6.8.0/config/jvm.options
66 0
|
6月前
|
设计模式 Java
【设计模式】JAVA Design Patterns——Abstract Factory(抽象工厂模式)
【设计模式】JAVA Design Patterns——Abstract Factory(抽象工厂模式)
|
3月前
|
Java 测试技术 Maven
成功解决:nested exception is java.lang.NoClassDefFoundError: org/springframework/aop/TargetSource
这篇文章介绍了解决Spring框架中出现的`java.lang.NoClassDefFoundError: org/springframework/aop/TargetSource`错误的步骤,指出错误原因是缺少`spring-aop`模块的jar包,并提供了通过Maven依赖或手动添加jar包到项目中的方法来解决这个问题。
成功解决:nested exception is java.lang.NoClassDefFoundError: org/springframework/aop/TargetSource
IDEA添加Swagger2:Parameter 0 of method linkDiscoverers in org. springframework hateoas.config.Hateoasconfiguration required a single bean, but 15 were found:
IDEA添加Swagger2:Parameter 0 of method linkDiscoverers in org. springframework hateoas.config.Hateoasconfiguration required a single bean, but 15 were found
|
3月前
|
JavaScript Java Python
【Azure 应用服务】在Azure App Service for Windows 中部署Java/NodeJS/Python项目时,web.config的配置模板内容
【Azure 应用服务】在Azure App Service for Windows 中部署Java/NodeJS/Python项目时,web.config的配置模板内容
|
5月前
|
存储 消息中间件 Java
Java一分钟之-Spring Cloud Config:外部化配置
【6月更文挑战第8天】Spring Cloud Config提供外部化配置,通过Config Server管理和版本控制微服务配置。本文涵盖Config Server与Client的配置、常见错误、多环境配置、实时更新及使用示例。注意配置服务器URL、环境变量设置、Bus配置以及安全问题。使用Config能提升系统灵活性和可维护性,但要留意日志以确保配置正确和安全。
146 10
|
4月前
|
easyexcel Java Apache
EasyExcel导入的时候报错Caused by: java.lang.NoClassDefFoundError: org/apache/poi/poifs/filesystem/File
EasyExcel导入的时候报错Caused by: java.lang.NoClassDefFoundError: org/apache/poi/poifs/filesystem/File
378 0
|
6月前
|
安全 Java 数据库连接
java.lang.NoClassDefFoundError: org/springframework/beans/factory/config/YamlProcessor$StrictMapAppe
java.lang.NoClassDefFoundError: org/springframework/beans/factory/config/YamlProcessor$StrictMapAppe
57 0
|
6天前
|
Java 开发者
Java多线程编程中的常见误区与最佳实践####
本文深入剖析了Java多线程编程中开发者常遇到的几个典型误区,如对`start()`与`run()`方法的混淆使用、忽视线程安全问题、错误处理未同步的共享变量等,并针对这些问题提出了具体的解决方案和最佳实践。通过实例代码对比,直观展示了正确与错误的实现方式,旨在帮助读者构建更加健壮、高效的多线程应用程序。 ####
|
5天前
|
安全 Java 开发者
Java 多线程并发控制:深入理解与实战应用
《Java多线程并发控制:深入理解与实战应用》一书详细解析了Java多线程编程的核心概念、并发控制技术及其实战技巧,适合Java开发者深入学习和实践参考。

热门文章

最新文章

  • 1
    Spring Boot与Spring Cloud Config的集成
    213
  • 2
    若依修改标题和icon,在vue.config.js和.env.development进行修改
    330
  • 3
    若依修改,若依的com.ruoyi.framework.config在那?搜索文件使用ctrl+shift+f不用搜狗输入法,其他輸入法,用英文
    44
  • 4
    若依修改,若依部署在本地运行时的注意事项,后端连接了服务器,本地的vue.config.js要先改成localhost:端口号与后端匹配,部署的时候再改公网IP:端口号
    167
  • 5
    部署常用的流程,可以用后端,连接宝塔,将IP地址修改好,本地只要连接好了,在本地上前后端跑起来,前端能够跑起来,改好了config.js资料,后端修改好数据库和连接redis,本地上跑成功了,再改
    71
  • 6
    若依修改---重新部署项目注意事项,新文件初始化需要修改的地方,打包后的文件很难进行修改,如果想要不断修改项目,注意保存原项目,才可以不断修改,前端:在Vue.config.js文件中修改target
    138
  • 7
    若依修改之后,无法访问前端项目如何解决,只能访问后端的接口,我的接口8083,端不显示咋解决?在vue.config.js文件中的映射路径要跟后端匹配,到软件商店里找到Ngnix配置代理,设80不用加
    631
  • 8
    文本vitepress,如何设置背景图,如何插入背景图,如何插入logo,为了放背景图片,我们要新建pubilc的文件夹,插入logo要在config.js中进行配置,注意细节,在添加背景时,注意格式
    139
  • 9
    文本,vitepress的使用,如何使用vitevitepress没有config.js该怎么办?这里使用vitepress进行手动配置,参考只爭朝夕不負韶華的文章
    68
  • 10
    vue 配置【详解】 vue.config.js ( 含 webpack 配置 )
    72