错误如下:
C:\Users\lxh\.jdks\corretto-1.8.0_362\bin\java.exe -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always "-javaagent:D:\Program Files\JetBrains\IntelliJ IDEA2021\lib\idea_rt.jar=64739:D:\Program Files\JetBrains\IntelliJ IDEA2021\bin" -Dcom.sun.management.jmxremote -Dspring.jmx.enabled=true -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true -Dfile.encoding=UTF-8 -classpath C:\Users\lxh\.jdks\corretto-1.8.0_362\jre\lib\charsets.jar;C:\Users\lxh\.jdks\corretto-1.8.0_362\jre\lib\ext\access-bridge-64.jar;C:\Users\lxh\.jdks\corretto-1.8.0_362\jre\lib\ext\cldrdata.jar;C:\Users\lxh\.jdks\corretto-1.8.0_362\jre\lib\ext\dnsns.jar;C:\Users\lxh\.jdks\corretto-1.8.0_362\jre\lib\ext\jaccess.jar;C:\Users\lxh\.jdks\corretto-1.8.0_362\jre\lib\ext\jfxrt.jar;C:\Users\lxh\.jdks\corretto-1.8.0_362\jre\lib\ext\localedata.jar;C:\Users\lxh\.jdks\corretto-1.8.0_362\jre\lib\ext\nashorn.jar;C:\Users\lxh\.jdks\corretto-1.8.0_362\jre\lib\ext\sunec.jar;C:\Users\lxh\.jdks\corretto-1.8.0_362\jre\lib\ext\sunjce_provider.jar;C:\Users\lxh\.jdks\corretto-1.8.0_362\jre\lib\ext\sunmscapi.jar;C:\Users\lxh\.jdks\corretto-1.8.0_362\jre\lib\ext\sunpkcs11.jar;C:\Users\lxh\.jdks\corretto-1.8.0_362\jre\lib\ext\zipfs.jar;C:\Users\lxh\.jdks\corretto-1.8.0_362\jre\lib\jce.jar;C:\Users\lxh\.jdks\corretto-1.8.0_362\jre\lib\jfr.jar;C:\Users\lxh\.jdks\corretto-1.8.0_362\jre\lib\jfxswt.jar;C:\Users\lxh\.jdks\corretto-1.8.0_362\jre\lib\jsse.jar;C:\Users\lxh\.jdks\corretto-1.8.0_362\jre\lib\management-agent.jar;C:\Users\lxh\.jdks\corretto-1.8.0_362\jre\lib\resources.jar;C:\Users\lxh\.jdks\corretto-1.8.0_362\jre\lib\rt.jar;D:\学习\projectFile\study\study_feign\target\classes;D:\学习\projectFile\study\study_common\target\classes;D:\学习\projectFile\study\study_dao\target\classes;D:\学习\projectFile\study\study_entity\target\classes;D:\software\apache-maven-3.8.4\mvn_resp\org\springframework\boot\spring-boot-starter-validation\2.7.15\spring-boot-starter-validation-2.7.15.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\hibernate\validator\hibernate-validator\6.2.5.Final\hibernate-validator-6.2.5.Final.jar;D:\software\apache-maven-3.8.4\mvn_resp\jakarta\validation\jakarta.validation-api\2.0.2\jakarta.validation-api-2.0.2.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\jboss\logging\jboss-logging\3.4.3.Final\jboss-logging-3.4.3.Final.jar;D:\学习\projectFile\study\study_utils\target\classes;D:\software\apache-maven-3.8.4\mvn_resp\org\springframework\cloud\spring-cloud-starter-openfeign\2.2.7.RELEASE\spring-cloud-starter-openfeign-2.2.7.RELEASE.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\springframework\cloud\spring-cloud-starter\2.2.7.RELEASE\spring-cloud-starter-2.2.7.RELEASE.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\springframework\cloud\spring-cloud-context\2.2.7.RELEASE\spring-cloud-context-2.2.7.RELEASE.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\springframework\security\spring-security-rsa\1.0.9.RELEASE\spring-security-rsa-1.0.9.RELEASE.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\bouncycastle\bcpkix-jdk15on\1.64\bcpkix-jdk15on-1.64.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\bouncycastle\bcprov-jdk15on\1.64\bcprov-jdk15on-1.64.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\springframework\cloud\spring-cloud-openfeign-core\2.2.7.RELEASE\spring-cloud-openfeign-core-2.2.7.RELEASE.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\springframework\cloud\spring-cloud-netflix-ribbon\2.2.7.RELEASE\spring-cloud-netflix-ribbon-2.2.7.RELEASE.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\springframework\cloud\spring-cloud-netflix-archaius\2.2.7.RELEASE\spring-cloud-netflix-archaius-2.2.7.RELEASE.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\springframework\boot\spring-boot-starter-aop\2.7.15\spring-boot-starter-aop-2.7.15.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\aspectj\aspectjweaver\1.9.7\aspectjweaver-1.9.7.jar;D:\software\apache-maven-3.8.4\mvn_resp\io\github\openfeign\form\feign-form-spring\3.8.0\feign-form-spring-3.8.0.jar;D:\software\apache-maven-3.8.4\mvn_resp\io\github\openfeign\form\feign-form\3.8.0\feign-form-3.8.0.jar;D:\software\apache-maven-3.8.4\mvn_resp\commons-fileupload\commons-fileupload\1.4\commons-fileupload-1.4.jar;D:\software\apache-maven-3.8.4\mvn_resp\commons-io\commons-io\2.2\commons-io-2.2.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\springframework\spring-web\5.3.29\spring-web-5.3.29.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\springframework\spring-beans\5.3.29\spring-beans-5.3.29.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\springframework\cloud\spring-cloud-commons\2.2.7.RELEASE\spring-cloud-commons-2.2.7.RELEASE.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\springframework\security\spring-security-crypto\5.7.10\spring-security-crypto-5.7.10.jar;D:\software\apache-maven-3.8.4\mvn_resp\io\github\openfeign\feign-core\10.10.1\feign-core-10.10.1.jar;D:\software\apache-maven-3.8.4\mvn_resp\io\github\openfeign\feign-slf4j\10.10.1\feign-slf4j-10.10.1.jar;D:\software\apache-maven-3.8.4\mvn_resp\io\github\openfeign\feign-hystrix\10.10.1\feign-hystrix-10.10.1.jar;D:\software\apache-maven-3.8.4\mvn_resp\com\netflix\archaius\archaius-core\0.7.6\archaius-core-0.7.6.jar;D:\software\apache-maven-3.8.4\mvn_resp\com\google\code\findbugs\jsr305\3.0.1\jsr305-3.0.1.jar;D:\software\apache-maven-3.8.4\mvn_resp\commons-configuration\commons-configuration\1.8\commons-configuration-1.8.jar;D:\software\apache-maven-3.8.4\mvn_resp\commons-lang\commons-lang\2.6\commons-lang-2.6.jar;D:\software\apache-maven-3.8.4\mvn_resp\commons-logging\commons-logging\1.1.1\commons-logging-1.1.1.jar;D:\software\apache-maven-3.8.4\mvn_resp\com\fasterxml\jackson\core\jackson-core\2.13.5\jackson-core-2.13.5.jar;D:\software\apache-maven-3.8.4\mvn_resp\com\netflix\hystrix\hystrix-core\1.5.18\hystrix-core-1.5.18.jar;D:\software\apache-maven-3.8.4\mvn_resp\io\reactivex\rxjava\1.3.8\rxjava-1.3.8.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\hdrhistogram\HdrHistogram\2.1.9\HdrHistogram-2.1.9.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\springframework\boot\spring-boot-starter\2.7.15\spring-boot-starter-2.7.15.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\springframework\boot\spring-boot\2.7.15\spring-boot-2.7.15.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\springframework\spring-context\5.3.29\spring-context-5.3.29.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\springframework\boot\spring-boot-autoconfigure\2.7.15\spring-boot-autoconfigure-2.7.15.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\springframework\boot\spring-boot-starter-logging\2.7.15\spring-boot-starter-logging-2.7.15.jar;D:\software\apache-maven-3.8.4\mvn_resp\ch\qos\logback\logback-classic\1.2.12\logback-classic-1.2.12.jar;D:\software\apache-maven-3.8.4\mvn_resp\ch\qos\logback\logback-core\1.2.12\logback-core-1.2.12.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\apache\logging\log4j\log4j-to-slf4j\2.17.2\log4j-to-slf4j-2.17.2.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\apache\logging\log4j\log4j-api\2.17.2\log4j-api-2.17.2.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\slf4j\jul-to-slf4j\1.7.25\jul-to-slf4j-1.7.25.jar;D:\software\apache-maven-3.8.4\mvn_resp\jakarta\annotation\jakarta.annotation-api\1.3.5\jakarta.annotation-api-1.3.5.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\springframework\spring-core\5.3.29\spring-core-5.3.29.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\springframework\spring-jcl\5.3.29\spring-jcl-5.3.29.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\yaml\snakeyaml\1.30\snakeyaml-1.30.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\springframework\boot\spring-boot-starter-web\2.7.15\spring-boot-starter-web-2.7.15.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\springframework\boot\spring-boot-starter-json\2.7.15\spring-boot-starter-json-2.7.15.jar;D:\software\apache-maven-3.8.4\mvn_resp\com\fasterxml\jackson\core\jackson-databind\2.13.5\jackson-databind-2.13.5.jar;D:\software\apache-maven-3.8.4\mvn_resp\com\fasterxml\jackson\datatype\jackson-datatype-jdk8\2.13.5\jackson-datatype-jdk8-2.13.5.jar;D:\software\apache-maven-3.8.4\mvn_resp\com\fasterxml\jackson\datatype\jackson-datatype-jsr310\2.13.5\jackson-datatype-jsr310-2.13.5.jar;D:\software\apache-maven-3.8.4\mvn_resp\com\fasterxml\jackson\module\jackson-module-parameter-names\2.13.5\jackson-module-parameter-names-2.13.5.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\springframework\boot\spring-boot-starter-tomcat\2.7.15\spring-boot-starter-tomcat-2.7.15.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\apache\tomcat\embed\tomcat-embed-core\9.0.79\tomcat-embed-core-9.0.79.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\apache\tomcat\embed\tomcat-embed-el\9.0.79\tomcat-embed-el-9.0.79.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\apache\tomcat\embed\tomcat-embed-websocket\9.0.79\tomcat-embed-websocket-9.0.79.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\springframework\spring-webmvc\5.3.29\spring-webmvc-5.3.29.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\springframework\spring-aop\5.3.29\spring-aop-5.3.29.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\springframework\spring-expression\5.3.29\spring-expression-5.3.29.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\hamcrest\hamcrest\2.2\hamcrest-2.2.jar;D:\software\apache-maven-3.8.4\mvn_resp\net\bytebuddy\byte-buddy\1.12.23\byte-buddy-1.12.23.jar;D:\software\apache-maven-3.8.4\mvn_resp\net\bytebuddy\byte-buddy-agent\1.12.23\byte-buddy-agent-1.12.23.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\objenesis\objenesis\3.2\objenesis-3.2.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\hamcrest\hamcrest-core\2.2\hamcrest-core-2.2.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\projectlombok\lombok\1.18.24\lombok-1.18.24.jar;D:\software\apache-maven-3.8.4\mvn_resp\com\baomidou\mybatis-plus-boot-starter\3.5.1\mybatis-plus-boot-starter-3.5.1.jar;D:\software\apache-maven-3.8.4\mvn_resp\com\baomidou\mybatis-plus\3.5.1\mybatis-plus-3.5.1.jar;D:\software\apache-maven-3.8.4\mvn_resp\com\baomidou\mybatis-plus-extension\3.5.1\mybatis-plus-extension-3.5.1.jar;D:\software\apache-maven-3.8.4\mvn_resp\com\baomidou\mybatis-plus-core\3.5.1\mybatis-plus-core-3.5.1.jar;D:\software\apache-maven-3.8.4\mvn_resp\com\baomidou\mybatis-plus-annotation\3.5.1\mybatis-plus-annotation-3.5.1.jar;D:\software\apache-maven-3.8.4\mvn_resp\com\github\jsqlparser\jsqlparser\4.3\jsqlparser-4.3.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\mybatis\mybatis\3.5.9\mybatis-3.5.9.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\mybatis\mybatis-spring\2.0.6\mybatis-spring-2.0.6.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\springframework\boot\spring-boot-starter-jdbc\2.7.15\spring-boot-starter-jdbc-2.7.15.jar;D:\software\apache-maven-3.8.4\mvn_resp\com\zaxxer\HikariCP\4.0.3\HikariCP-4.0.3.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\springframework\spring-jdbc\5.3.29\spring-jdbc-5.3.29.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\springframework\spring-tx\5.3.29\spring-tx-5.3.29.jar;D:\software\apache-maven-3.8.4\mvn_resp\com\mysql\mysql-connector-j\8.0.32\mysql-connector-j-8.0.32.jar;D:\software\apache-maven-3.8.4\mvn_resp\p6spy\p6spy\3.9.1\p6spy-3.9.1.jar;D:\software\apache-maven-3.8.4\mvn_resp\com\alibaba\druid-spring-boot-starter\1.2.11\druid-spring-boot-starter-1.2.11.jar;D:\software\apache-maven-3.8.4\mvn_resp\com\alibaba\druid\1.2.11\druid-1.2.11.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\slf4j\slf4j-api\1.7.25\slf4j-api-1.7.25.jar;D:\software\apache-maven-3.8.4\mvn_resp\io\springfox\springfox-swagger2\2.9.2\springfox-swagger2-2.9.2.jar;D:\software\apache-maven-3.8.4\mvn_resp\io\swagger\swagger-annotations\1.5.20\swagger-annotations-1.5.20.jar;D:\software\apache-maven-3.8.4\mvn_resp\io\swagger\swagger-models\1.5.20\swagger-models-1.5.20.jar;D:\software\apache-maven-3.8.4\mvn_resp\com\fasterxml\jackson\core\jackson-annotations\2.13.5\jackson-annotations-2.13.5.jar;D:\software\apache-maven-3.8.4\mvn_resp\io\springfox\springfox-spi\2.9.2\springfox-spi-2.9.2.jar;D:\software\apache-maven-3.8.4\mvn_resp\io\springfox\springfox-core\2.9.2\springfox-core-2.9.2.jar;D:\software\apache-maven-3.8.4\mvn_resp\io\springfox\springfox-schema\2.9.2\springfox-schema-2.9.2.jar;D:\software\apache-maven-3.8.4\mvn_resp\io\springfox\springfox-swagger-common\2.9.2\springfox-swagger-common-2.9.2.jar;D:\software\apache-maven-3.8.4\mvn_resp\io\springfox\springfox-spring-web\2.9.2\springfox-spring-web-2.9.2.jar;D:\software\apache-maven-3.8.4\mvn_resp\com\google\guava\guava\20.0\guava-20.0.jar;D:\software\apache-maven-3.8.4\mvn_resp\com\fasterxml\classmate\1.5.1\classmate-1.5.1.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\springframework\plugin\spring-plugin-core\1.2.0.RELEASE\spring-plugin-core-1.2.0.RELEASE.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\springframework\plugin\spring-plugin-metadata\1.2.0.RELEASE\spring-plugin-metadata-1.2.0.RELEASE.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\mapstruct\mapstruct\1.2.0.Final\mapstruct-1.2.0.Final.jar;D:\software\apache-maven-3.8.4\mvn_resp\io\springfox\springfox-swagger-ui\2.9.2\springfox-swagger-ui-2.9.2.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\powermock\powermock-module-junit4\2.0.2\powermock-module-junit4-2.0.2.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\powermock\powermock-module-junit4-common\2.0.2\powermock-module-junit4-common-2.0.2.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\powermock\powermock-reflect\2.0.2\powermock-reflect-2.0.2.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\powermock\powermock-core\2.0.2\powermock-core-2.0.2.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\javassist\javassist\3.24.0-GA\javassist-3.24.0-GA.jar com.lxh.study_feign.StudyFeignApplication
2023-09-17 11:06:06.348 WARN 21100 --- [ main] s.c.a.AnnotationConfigApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'configurationPropertiesBeans' defined in class path resource [org/springframework/cloud/autoconfigure/ConfigurationPropertiesRebinderAutoConfiguration.class]: Post-processing of merged bean definition failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class [org.springframework.cloud.context.properties.ConfigurationPropertiesBeans] from ClassLoader [sun.misc.Launcher$AppClassLoader@18b4aac2]
2023-09-17 11:06:06.690 INFO 21100 --- [ main] ConditionEvaluationReportLoggingListener :
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2023-09-17 11:06:06.753 ERROR 21100 --- [ main] o.s.boot.SpringApplication : Application run failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'configurationPropertiesBeans' defined in class path resource [org/springframework/cloud/autoconfigure/ConfigurationPropertiesRebinderAutoConfiguration.class]: Post-processing of merged bean definition failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class [org.springframework.cloud.context.properties.ConfigurationPropertiesBeans] from ClassLoader [sun.misc.Launcher$AppClassLoader@18b4aac2]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:597) ~[spring-beans-5.3.29.jar:5.3.29]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) ~[spring-beans-5.3.29.jar:5.3.29]
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) ~[spring-beans-5.3.29.jar:5.3.29]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.3.29.jar:5.3.29]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) ~[spring-beans-5.3.29.jar:5.3.29]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:213) ~[spring-beans-5.3.29.jar:5.3.29]
at org.springframework.context.support.PostProcessorRegistrationDelegate.registerBeanPostProcessors(PostProcessorRegistrationDelegate.java:270) ~[spring-context-5.3.29.jar:5.3.29]
at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:765) ~[spring-context-5.3.29.jar:5.3.29]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:567) ~[spring-context-5.3.29.jar:5.3.29]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:731) ~[spring-boot-2.7.15.jar:2.7.15]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:408) ~[spring-boot-2.7.15.jar:2.7.15]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:307) ~[spring-boot-2.7.15.jar:2.7.15]
at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:164) [spring-boot-2.7.15.jar:2.7.15]
at org.springframework.cloud.bootstrap.BootstrapApplicationListener.bootstrapServiceContext(BootstrapApplicationListener.java:212) [spring-cloud-context-2.2.7.RELEASE.jar:2.2.7.RELEASE]
at org.springframework.cloud.bootstrap.BootstrapApplicationListener.onApplicationEvent(BootstrapApplicationListener.java:117) [spring-cloud-context-2.2.7.RELEASE.jar:2.2.7.RELEASE]
at org.springframework.cloud.bootstrap.BootstrapApplicationListener.onApplicationEvent(BootstrapApplicationListener.java:74) [spring-cloud-context-2.2.7.RELEASE.jar:2.2.7.RELEASE]
at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:176) [spring-context-5.3.29.jar:5.3.29]
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:169) [spring-context-5.3.29.jar:5.3.29]
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:143) [spring-context-5.3.29.jar:5.3.29]
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:131) [spring-context-5.3.29.jar:5.3.29]
at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:85) [spring-boot-2.7.15.jar:2.7.15]
at org.springframework.boot.SpringApplicationRunListeners.lambda$environmentPrepared$2(SpringApplicationRunListeners.java:66) [spring-boot-2.7.15.jar:2.7.15]
at java.util.ArrayList.forEach(ArrayList.java:1259) ~[na:1.8.0_362]
at org.springframework.boot.SpringApplicationRunListeners.doWithListeners(SpringApplicationRunListeners.java:120) [spring-boot-2.7.15.jar:2.7.15]
at org.springframework.boot.SpringApplicationRunListeners.doWithListeners(SpringApplicationRunListeners.java:114) [spring-boot-2.7.15.jar:2.7.15]
at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:65) [spring-boot-2.7.15.jar:2.7.15]
at org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:343) ~[spring-boot-2.7.15.jar:2.7.15]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:301) ~[spring-boot-2.7.15.jar:2.7.15]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1303) ~[spring-boot-2.7.15.jar:2.7.15]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1292) ~[spring-boot-2.7.15.jar:2.7.15]
at com.lxh.study_feign.StudyFeignApplication.main(StudyFeignApplication.java:15) ~[classes/:na]
Caused by: java.lang.IllegalStateException: Failed to introspect Class [org.springframework.cloud.context.properties.ConfigurationPropertiesBeans] from ClassLoader [sun.misc.Launcher$AppClassLoader@18b4aac2]
at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:485) ~[spring-core-5.3.29.jar:5.3.29]
at org.springframework.util.ReflectionUtils.doWithLocalMethods(ReflectionUtils.java:321) ~[spring-core-5.3.29.jar:5.3.29]
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.buildLifecycleMetadata(InitDestroyAnnotationBeanPostProcessor.java:232) ~[spring-beans-5.3.29.jar:5.3.29]
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.findLifecycleMetadata(InitDestroyAnnotationBeanPostProcessor.java:210) ~[spring-beans-5.3.29.jar:5.3.29]
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessMergedBeanDefinition(InitDestroyAnnotationBeanPostProcessor.java:149) ~[spring-beans-5.3.29.jar:5.3.29]
at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessMergedBeanDefinition(CommonAnnotationBeanPostProcessor.java:305) ~[spring-context-5.3.29.jar:5.3.29]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyMergedBeanDefinitionPostProcessors(AbstractAutowireCapableBeanFactory.java:1116) ~[spring-beans-5.3.29.jar:5.3.29]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:594) ~[spring-beans-5.3.29.jar:5.3.29]
... 30 common frames omitted
Caused by: java.lang.NoClassDefFoundError: org/springframework/boot/context/properties/ConfigurationBeanFactoryMetadata
at java.lang.Class.getDeclaredMethods0(Native Method) ~[na:1.8.0_362]
at java.lang.Class.privateGetDeclaredMethods(Class.java:2729) ~[na:1.8.0_362]
at java.lang.Class.getDeclaredMethods(Class.java:2003) ~[na:1.8.0_362]
at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:467) ~[spring-core-5.3.29.jar:5.3.29]
... 37 common frames omitted
Caused by: java.lang.ClassNotFoundException: org.springframework.boot.context.properties.ConfigurationBeanFactoryMetadata
at java.net.URLClassLoader.findClass(URLClassLoader.java:387) ~[na:1.8.0_362]
at java.lang.ClassLoader.loadClass(ClassLoader.java:418) ~[na:1.8.0_362]
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352) ~[na:1.8.0_362]
at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ~[na:1.8.0_362]
... 41 common frames omitted
2023-09-17 11:06:06.768 ERROR 21100 --- [ main] o.s.boot.SpringApplication : Application run failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'configurationPropertiesBeans' defined in class path resource [org/springframework/cloud/autoconfigure/ConfigurationPropertiesRebinderAutoConfiguration.class]: Post-processing of merged bean definition failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class [org.springframework.cloud.context.properties.ConfigurationPropertiesBeans] from ClassLoader [sun.misc.Launcher$AppClassLoader@18b4aac2]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:597) ~[spring-beans-5.3.29.jar:5.3.29]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) ~[spring-beans-5.3.29.jar:5.3.29]
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) ~[spring-beans-5.3.29.jar:5.3.29]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.3.29.jar:5.3.29]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) ~[spring-beans-5.3.29.jar:5.3.29]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:213) ~[spring-beans-5.3.29.jar:5.3.29]
at org.springframework.context.support.PostProcessorRegistrationDelegate.registerBeanPostProcessors(PostProcessorRegistrationDelegate.java:270) ~[spring-context-5.3.29.jar:5.3.29]
at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:765) ~[spring-context-5.3.29.jar:5.3.29]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:567) ~[spring-context-5.3.29.jar:5.3.29]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:731) [spring-boot-2.7.15.jar:2.7.15]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:408) [spring-boot-2.7.15.jar:2.7.15]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:307) [spring-boot-2.7.15.jar:2.7.15]
at org.springframework.boot.builder.SpringApplicationBuilder.run(SpringApplicationBuilder.java:164) ~[spring-boot-2.7.15.jar:2.7.15]
at org.springframework.cloud.bootstrap.BootstrapApplicationListener.bootstrapServiceContext(BootstrapApplicationListener.java:212) ~[spring-cloud-context-2.2.7.RELEASE.jar:2.2.7.RELEASE]
at org.springframework.cloud.bootstrap.BootstrapApplicationListener.onApplicationEvent(BootstrapApplicationListener.java:117) ~[spring-cloud-context-2.2.7.RELEASE.jar:2.2.7.RELEASE]
at org.springframework.cloud.bootstrap.BootstrapApplicationListener.onApplicationEvent(BootstrapApplicationListener.java:74) ~[spring-cloud-context-2.2.7.RELEASE.jar:2.2.7.RELEASE]
at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:176) ~[spring-context-5.3.29.jar:5.3.29]
at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:169) ~[spring-context-5.3.29.jar:5.3.29]
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:143) ~[spring-context-5.3.29.jar:5.3.29]
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:131) ~[spring-context-5.3.29.jar:5.3.29]
at org.springframework.boot.context.event.EventPublishingRunListener.environmentPrepared(EventPublishingRunListener.java:85) ~[spring-boot-2.7.15.jar:2.7.15]
at org.springframework.boot.SpringApplicationRunListeners.lambda$environmentPrepared$2(SpringApplicationRunListeners.java:66) ~[spring-boot-2.7.15.jar:2.7.15]
at java.util.ArrayList.forEach(ArrayList.java:1259) ~[na:1.8.0_362]
at org.springframework.boot.SpringApplicationRunListeners.doWithListeners(SpringApplicationRunListeners.java:120) ~[spring-boot-2.7.15.jar:2.7.15]
at org.springframework.boot.SpringApplicationRunListeners.doWithListeners(SpringApplicationRunListeners.java:114) ~[spring-boot-2.7.15.jar:2.7.15]
at org.springframework.boot.SpringApplicationRunListeners.environmentPrepared(SpringApplicationRunListeners.java:65) ~[spring-boot-2.7.15.jar:2.7.15]
at org.springframework.boot.SpringApplication.prepareEnvironment(SpringApplication.java:343) [spring-boot-2.7.15.jar:2.7.15]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:301) [spring-boot-2.7.15.jar:2.7.15]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1303) [spring-boot-2.7.15.jar:2.7.15]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1292) [spring-boot-2.7.15.jar:2.7.15]
at com.lxh.study_feign.StudyFeignApplication.main(StudyFeignApplication.java:15) [classes/:na]
Caused by: java.lang.IllegalStateException: Failed to introspect Class [org.springframework.cloud.context.properties.ConfigurationPropertiesBeans] from ClassLoader [sun.misc.Launcher$AppClassLoader@18b4aac2]
at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:485) ~[spring-core-5.3.29.jar:5.3.29]
at org.springframework.util.ReflectionUtils.doWithLocalMethods(ReflectionUtils.java:321) ~[spring-core-5.3.29.jar:5.3.29]
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.buildLifecycleMetadata(InitDestroyAnnotationBeanPostProcessor.java:232) ~[spring-beans-5.3.29.jar:5.3.29]
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.findLifecycleMetadata(InitDestroyAnnotationBeanPostProcessor.java:210) ~[spring-beans-5.3.29.jar:5.3.29]
at org.springframework.beans.factory.annotation.InitDestroyAnnotationBeanPostProcessor.postProcessMergedBeanDefinition(InitDestroyAnnotationBeanPostProcessor.java:149) ~[spring-beans-5.3.29.jar:5.3.29]
at org.springframework.context.annotation.CommonAnnotationBeanPostProcessor.postProcessMergedBeanDefinition(CommonAnnotationBeanPostProcessor.java:305) ~[spring-context-5.3.29.jar:5.3.29]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyMergedBeanDefinitionPostProcessors(AbstractAutowireCapableBeanFactory.java:1116) ~[spring-beans-5.3.29.jar:5.3.29]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:594) ~[spring-beans-5.3.29.jar:5.3.29]
... 30 common frames omitted
Caused by: java.lang.NoClassDefFoundError: org/springframework/boot/context/properties/ConfigurationBeanFactoryMetadata
at java.lang.Class.getDeclaredMethods0(Native Method) ~[na:1.8.0_362]
at java.lang.Class.privateGetDeclaredMethods(Class.java:2729) ~[na:1.8.0_362]
at java.lang.Class.getDeclaredMethods(Class.java:2003) ~[na:1.8.0_362]
at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:467) ~[spring-core-5.3.29.jar:5.3.29]
... 37 common frames omitted
Caused by: java.lang.ClassNotFoundException: org.springframework.boot.context.properties.ConfigurationBeanFactoryMetadata
at java.net.URLClassLoader.findClass(URLClassLoader.java:387) ~[na:1.8.0_362]
at java.lang.ClassLoader.loadClass(ClassLoader.java:418) ~[na:1.8.0_362]
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352) ~[na:1.8.0_362]
at java.lang.ClassLoader.loadClass(ClassLoader.java:351) ~[na:1.8.0_362]
... 41 common frames omitted
进程已结束,退出代码为 1
原因分析:
相同问题
上面说选择相同的版本的:spring-boot-starter-parent
和pring-cloud-starter-openfeign
但是我这里没有这个版本的spring-cloud-starter-openfeign
啊:
Could not find artifact org.springframework.cloud:spring-cloud-starter-openfeign:pom:2.7.15 in alimaven (http://maven.aliyun.com/nexus/content/groups/public)
于是找到这篇博客,将spring-cloud-starter-openfeign
版本改为3.1.5
。但是出现如下问题:
D:\学习\projectFile\study\study_feign\src\main\java\com\lxh\study_feign\feign\ExampleFeignService.java:11:43
java: 程序包org.springframework.cloud.openfeign不存在
然后按照这篇文章的方法,首先clean
再重新运行,但是还是没有效果。于是清理idea缓存,重启。
果然,出现爆红:
然后查找了许多博客:如参考博客,都不管用。
终于在这篇博客找到了方法(第5条):解决我问题的博客。
解决
在file菜单,invalidateCatch/Restart ,清除idea项目caches,然后重启idea后 ,发现刚刚没报错但又找不到的那个类此时报红了,这时候reimport maven 就可以重新下载jar包了.(我用这种方法解决的)
至此,org.springframework.cloud.openfeign版本问题、依赖提示缺少的问题已经解决,但是启动feign模块又出现了如下问题:
C:\Users\lxh\.jdks\corretto-1.8.0_362\bin\java.exe -XX:TieredStopAtLevel=1 -noverify -Dspring.output.ansi.enabled=always "-javaagent:D:\Program Files\JetBrains\IntelliJ IDEA2021\lib\idea_rt.jar=53846:D:\Program Files\JetBrains\IntelliJ IDEA2021\bin" -Dcom.sun.management.jmxremote -Dspring.jmx.enabled=true -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true -Dfile.encoding=UTF-8 -classpath C:\Users\lxh\.jdks\corretto-1.8.0_362\jre\lib\charsets.jar;C:\Users\lxh\.jdks\corretto-1.8.0_362\jre\lib\ext\access-bridge-64.jar;C:\Users\lxh\.jdks\corretto-1.8.0_362\jre\lib\ext\cldrdata.jar;C:\Users\lxh\.jdks\corretto-1.8.0_362\jre\lib\ext\dnsns.jar;C:\Users\lxh\.jdks\corretto-1.8.0_362\jre\lib\ext\jaccess.jar;C:\Users\lxh\.jdks\corretto-1.8.0_362\jre\lib\ext\jfxrt.jar;C:\Users\lxh\.jdks\corretto-1.8.0_362\jre\lib\ext\localedata.jar;C:\Users\lxh\.jdks\corretto-1.8.0_362\jre\lib\ext\nashorn.jar;C:\Users\lxh\.jdks\corretto-1.8.0_362\jre\lib\ext\sunec.jar;C:\Users\lxh\.jdks\corretto-1.8.0_362\jre\lib\ext\sunjce_provider.jar;C:\Users\lxh\.jdks\corretto-1.8.0_362\jre\lib\ext\sunmscapi.jar;C:\Users\lxh\.jdks\corretto-1.8.0_362\jre\lib\ext\sunpkcs11.jar;C:\Users\lxh\.jdks\corretto-1.8.0_362\jre\lib\ext\zipfs.jar;C:\Users\lxh\.jdks\corretto-1.8.0_362\jre\lib\jce.jar;C:\Users\lxh\.jdks\corretto-1.8.0_362\jre\lib\jfr.jar;C:\Users\lxh\.jdks\corretto-1.8.0_362\jre\lib\jfxswt.jar;C:\Users\lxh\.jdks\corretto-1.8.0_362\jre\lib\jsse.jar;C:\Users\lxh\.jdks\corretto-1.8.0_362\jre\lib\management-agent.jar;C:\Users\lxh\.jdks\corretto-1.8.0_362\jre\lib\resources.jar;C:\Users\lxh\.jdks\corretto-1.8.0_362\jre\lib\rt.jar;D:\学习\projectFile\study\study_feign\target\classes;D:\学习\projectFile\study\study_common\target\classes;D:\学习\projectFile\study\study_dao\target\classes;D:\学习\projectFile\study\study_entity\target\classes;D:\software\apache-maven-3.8.4\mvn_resp\org\springframework\boot\spring-boot-starter-validation\2.7.15\spring-boot-starter-validation-2.7.15.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\hibernate\validator\hibernate-validator\6.2.5.Final\hibernate-validator-6.2.5.Final.jar;D:\software\apache-maven-3.8.4\mvn_resp\jakarta\validation\jakarta.validation-api\2.0.2\jakarta.validation-api-2.0.2.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\jboss\logging\jboss-logging\3.4.3.Final\jboss-logging-3.4.3.Final.jar;D:\学习\projectFile\study\study_utils\target\classes;D:\software\apache-maven-3.8.4\mvn_resp\org\springframework\cloud\spring-cloud-starter-openfeign\3.1.5\spring-cloud-starter-openfeign-3.1.5.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\springframework\cloud\spring-cloud-starter\3.1.5\spring-cloud-starter-3.1.5.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\springframework\cloud\spring-cloud-context\3.1.5\spring-cloud-context-3.1.5.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\springframework\security\spring-security-rsa\1.0.11.RELEASE\spring-security-rsa-1.0.11.RELEASE.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\bouncycastle\bcpkix-jdk15on\1.69\bcpkix-jdk15on-1.69.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\bouncycastle\bcprov-jdk15on\1.69\bcprov-jdk15on-1.69.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\bouncycastle\bcutil-jdk15on\1.69\bcutil-jdk15on-1.69.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\springframework\cloud\spring-cloud-openfeign-core\3.1.5\spring-cloud-openfeign-core-3.1.5.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\springframework\boot\spring-boot-starter-aop\2.7.15\spring-boot-starter-aop-2.7.15.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\aspectj\aspectjweaver\1.9.7\aspectjweaver-1.9.7.jar;D:\software\apache-maven-3.8.4\mvn_resp\io\github\openfeign\form\feign-form-spring\3.8.0\feign-form-spring-3.8.0.jar;D:\software\apache-maven-3.8.4\mvn_resp\io\github\openfeign\form\feign-form\3.8.0\feign-form-3.8.0.jar;D:\software\apache-maven-3.8.4\mvn_resp\commons-fileupload\commons-fileupload\1.4\commons-fileupload-1.4.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\springframework\spring-web\5.3.29\spring-web-5.3.29.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\springframework\spring-beans\5.3.29\spring-beans-5.3.29.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\springframework\cloud\spring-cloud-commons\3.1.5\spring-cloud-commons-3.1.5.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\springframework\security\spring-security-crypto\5.7.10\spring-security-crypto-5.7.10.jar;D:\software\apache-maven-3.8.4\mvn_resp\io\github\openfeign\feign-core\11.10\feign-core-11.10.jar;D:\software\apache-maven-3.8.4\mvn_resp\io\github\openfeign\feign-slf4j\11.10\feign-slf4j-11.10.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\springframework\boot\spring-boot-starter\2.7.15\spring-boot-starter-2.7.15.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\springframework\boot\spring-boot\2.7.15\spring-boot-2.7.15.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\springframework\spring-context\5.3.29\spring-context-5.3.29.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\springframework\boot\spring-boot-autoconfigure\2.7.15\spring-boot-autoconfigure-2.7.15.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\springframework\boot\spring-boot-starter-logging\2.7.15\spring-boot-starter-logging-2.7.15.jar;D:\software\apache-maven-3.8.4\mvn_resp\ch\qos\logback\logback-classic\1.2.12\logback-classic-1.2.12.jar;D:\software\apache-maven-3.8.4\mvn_resp\ch\qos\logback\logback-core\1.2.12\logback-core-1.2.12.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\apache\logging\log4j\log4j-to-slf4j\2.17.2\log4j-to-slf4j-2.17.2.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\apache\logging\log4j\log4j-api\2.17.2\log4j-api-2.17.2.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\slf4j\jul-to-slf4j\1.7.25\jul-to-slf4j-1.7.25.jar;D:\software\apache-maven-3.8.4\mvn_resp\jakarta\annotation\jakarta.annotation-api\1.3.5\jakarta.annotation-api-1.3.5.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\springframework\spring-core\5.3.29\spring-core-5.3.29.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\springframework\spring-jcl\5.3.29\spring-jcl-5.3.29.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\yaml\snakeyaml\1.30\snakeyaml-1.30.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\springframework\boot\spring-boot-starter-web\2.7.15\spring-boot-starter-web-2.7.15.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\springframework\boot\spring-boot-starter-json\2.7.15\spring-boot-starter-json-2.7.15.jar;D:\software\apache-maven-3.8.4\mvn_resp\com\fasterxml\jackson\core\jackson-databind\2.13.5\jackson-databind-2.13.5.jar;D:\software\apache-maven-3.8.4\mvn_resp\com\fasterxml\jackson\core\jackson-core\2.13.5\jackson-core-2.13.5.jar;D:\software\apache-maven-3.8.4\mvn_resp\com\fasterxml\jackson\datatype\jackson-datatype-jdk8\2.13.5\jackson-datatype-jdk8-2.13.5.jar;D:\software\apache-maven-3.8.4\mvn_resp\com\fasterxml\jackson\datatype\jackson-datatype-jsr310\2.13.5\jackson-datatype-jsr310-2.13.5.jar;D:\software\apache-maven-3.8.4\mvn_resp\com\fasterxml\jackson\module\jackson-module-parameter-names\2.13.5\jackson-module-parameter-names-2.13.5.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\springframework\boot\spring-boot-starter-tomcat\2.7.15\spring-boot-starter-tomcat-2.7.15.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\apache\tomcat\embed\tomcat-embed-core\9.0.79\tomcat-embed-core-9.0.79.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\apache\tomcat\embed\tomcat-embed-el\9.0.79\tomcat-embed-el-9.0.79.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\apache\tomcat\embed\tomcat-embed-websocket\9.0.79\tomcat-embed-websocket-9.0.79.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\springframework\spring-webmvc\5.3.29\spring-webmvc-5.3.29.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\springframework\spring-aop\5.3.29\spring-aop-5.3.29.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\springframework\spring-expression\5.3.29\spring-expression-5.3.29.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\hamcrest\hamcrest\2.2\hamcrest-2.2.jar;D:\software\apache-maven-3.8.4\mvn_resp\net\bytebuddy\byte-buddy\1.12.23\byte-buddy-1.12.23.jar;D:\software\apache-maven-3.8.4\mvn_resp\net\bytebuddy\byte-buddy-agent\1.12.23\byte-buddy-agent-1.12.23.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\objenesis\objenesis\3.2\objenesis-3.2.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\hamcrest\hamcrest-core\2.2\hamcrest-core-2.2.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\projectlombok\lombok\1.18.24\lombok-1.18.24.jar;D:\software\apache-maven-3.8.4\mvn_resp\com\baomidou\mybatis-plus-boot-starter\3.5.1\mybatis-plus-boot-starter-3.5.1.jar;D:\software\apache-maven-3.8.4\mvn_resp\com\baomidou\mybatis-plus\3.5.1\mybatis-plus-3.5.1.jar;D:\software\apache-maven-3.8.4\mvn_resp\com\baomidou\mybatis-plus-extension\3.5.1\mybatis-plus-extension-3.5.1.jar;D:\software\apache-maven-3.8.4\mvn_resp\com\baomidou\mybatis-plus-core\3.5.1\mybatis-plus-core-3.5.1.jar;D:\software\apache-maven-3.8.4\mvn_resp\com\baomidou\mybatis-plus-annotation\3.5.1\mybatis-plus-annotation-3.5.1.jar;D:\software\apache-maven-3.8.4\mvn_resp\com\github\jsqlparser\jsqlparser\4.3\jsqlparser-4.3.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\mybatis\mybatis\3.5.9\mybatis-3.5.9.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\mybatis\mybatis-spring\2.0.6\mybatis-spring-2.0.6.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\springframework\boot\spring-boot-starter-jdbc\2.7.15\spring-boot-starter-jdbc-2.7.15.jar;D:\software\apache-maven-3.8.4\mvn_resp\com\zaxxer\HikariCP\4.0.3\HikariCP-4.0.3.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\springframework\spring-jdbc\5.3.29\spring-jdbc-5.3.29.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\springframework\spring-tx\5.3.29\spring-tx-5.3.29.jar;D:\software\apache-maven-3.8.4\mvn_resp\com\mysql\mysql-connector-j\8.0.32\mysql-connector-j-8.0.32.jar;D:\software\apache-maven-3.8.4\mvn_resp\p6spy\p6spy\3.9.1\p6spy-3.9.1.jar;D:\software\apache-maven-3.8.4\mvn_resp\com\alibaba\druid-spring-boot-starter\1.2.11\druid-spring-boot-starter-1.2.11.jar;D:\software\apache-maven-3.8.4\mvn_resp\com\alibaba\druid\1.2.11\druid-1.2.11.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\slf4j\slf4j-api\1.7.25\slf4j-api-1.7.25.jar;D:\software\apache-maven-3.8.4\mvn_resp\io\springfox\springfox-swagger2\2.9.2\springfox-swagger2-2.9.2.jar;D:\software\apache-maven-3.8.4\mvn_resp\io\swagger\swagger-annotations\1.5.20\swagger-annotations-1.5.20.jar;D:\software\apache-maven-3.8.4\mvn_resp\io\swagger\swagger-models\1.5.20\swagger-models-1.5.20.jar;D:\software\apache-maven-3.8.4\mvn_resp\com\fasterxml\jackson\core\jackson-annotations\2.13.5\jackson-annotations-2.13.5.jar;D:\software\apache-maven-3.8.4\mvn_resp\io\springfox\springfox-spi\2.9.2\springfox-spi-2.9.2.jar;D:\software\apache-maven-3.8.4\mvn_resp\io\springfox\springfox-core\2.9.2\springfox-core-2.9.2.jar;D:\software\apache-maven-3.8.4\mvn_resp\io\springfox\springfox-schema\2.9.2\springfox-schema-2.9.2.jar;D:\software\apache-maven-3.8.4\mvn_resp\io\springfox\springfox-swagger-common\2.9.2\springfox-swagger-common-2.9.2.jar;D:\software\apache-maven-3.8.4\mvn_resp\io\springfox\springfox-spring-web\2.9.2\springfox-spring-web-2.9.2.jar;D:\software\apache-maven-3.8.4\mvn_resp\com\google\guava\guava\20.0\guava-20.0.jar;D:\software\apache-maven-3.8.4\mvn_resp\com\fasterxml\classmate\1.5.1\classmate-1.5.1.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\springframework\plugin\spring-plugin-core\1.2.0.RELEASE\spring-plugin-core-1.2.0.RELEASE.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\springframework\plugin\spring-plugin-metadata\1.2.0.RELEASE\spring-plugin-metadata-1.2.0.RELEASE.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\mapstruct\mapstruct\1.2.0.Final\mapstruct-1.2.0.Final.jar;D:\software\apache-maven-3.8.4\mvn_resp\io\springfox\springfox-swagger-ui\2.9.2\springfox-swagger-ui-2.9.2.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\powermock\powermock-module-junit4\2.0.2\powermock-module-junit4-2.0.2.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\powermock\powermock-module-junit4-common\2.0.2\powermock-module-junit4-common-2.0.2.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\powermock\powermock-reflect\2.0.2\powermock-reflect-2.0.2.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\powermock\powermock-core\2.0.2\powermock-core-2.0.2.jar;D:\software\apache-maven-3.8.4\mvn_resp\org\javassist\javassist\3.24.0-GA\javassist-3.24.0-GA.jar com.lxh.study_feign.StudyFeignApplication
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.7.15)
2023-09-17 14:35:08.569 INFO 7772 --- [ main] c.lxh.study_feign.StudyFeignApplication : Starting StudyFeignApplication using Java 1.8.0_362 on My-Computer with PID 7772 (D:\学习\projectFile\study\study_feign\target\classes started by lxh in D:\学习\projectFile\study)
2023-09-17 14:35:08.585 INFO 7772 --- [ main] c.lxh.study_feign.StudyFeignApplication : No active profile set, falling back to 1 default profile: "default"
2023-09-17 14:35:11.285 INFO 7772 --- [ main] o.s.cloud.context.scope.GenericScope : BeanFactory id=eb118ed9-7437-3486-80e1-d82bd5ce0f04
2023-09-17 14:35:12.089 INFO 7772 --- [ main] o.s.b.w.embedded.tomcat.TomcatWebServer : Tomcat initialized with port(s): 8081 (http)
2023-09-17 14:35:12.108 INFO 7772 --- [ main] o.apache.catalina.core.StandardService : Starting service [Tomcat]
2023-09-17 14:35:12.108 INFO 7772 --- [ main] org.apache.catalina.core.StandardEngine : Starting Servlet engine: [Apache Tomcat/9.0.79]
2023-09-17 14:35:12.349 INFO 7772 --- [ main] o.a.c.c.C.[Tomcat].[localhost].[/] : Initializing Spring embedded WebApplicationContext
2023-09-17 14:35:12.349 INFO 7772 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 3608 ms
2023-09-17 14:35:13.276 INFO 7772 --- [ main] c.a.d.s.b.a.DruidDataSourceAutoConfigure : Init DruidDataSource
2023-09-17 14:35:13.370 WARN 7772 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [com/alibaba/druid/spring/boot/autoconfigure/DruidDataSourceAutoConfigure.class]: Invocation of init method failed; nested exception is org.springframework.boot.autoconfigure.jdbc.DataSourceProperties$DataSourceBeanCreationException: Failed to determine a suitable driver class
2023-09-17 14:35:13.370 INFO 7772 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat]
2023-09-17 14:35:13.417 INFO 7772 --- [ main] ConditionEvaluationReportLoggingListener :
Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2023-09-17 14:35:13.558 ERROR 7772 --- [ main] o.s.b.d.LoggingFailureAnalysisReporter :
***************************
APPLICATION FAILED TO START
***************************
Description:
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
Reason: Failed to determine a suitable driver class
Action:
Consider the following:
If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active).
进程已结束,退出代码为 1
看提示可知是没有配置数据源的原因,配置文件中加入:
spring:
datasource:
druid:
username: root
password: root
url: jdbc:p6spy:mysql://localhost:3306/study?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&useInformationSchema=false
driver-class-name: com.p6spy.engine.spy.P6SpyDriver
# url: jdbc:mysql://localhost:3306/study?characterEncoding=utf8&useSSL=false&serverTimezone=Asia/Shanghai&useInformationSchema=false
# driver-class-name: com.mysql.cj.jdbc.Driver
type: com.alibaba.druid.pool.DruidDataSource
最终启动成功!