Spring Boot加载配置文件小记(The bean ‘XXXXXXXX.XXXXXXX‘ could not be registered)

java 同时被 2 个专栏收录
16 篇文章 0 订阅
3 篇文章 0 订阅

SpringBoot启动加载配置文件详解

送给各位程序员的话

在这里插入图片描述
喂!三點幾了喂。做做做做撚啊做。看博客先啦,三點幾,看博客先啦。做咁多都冇用,老細唔錫你啦喂。喂,看博客先啦喂。做碌鳩啊做。只有知识才是自己的!

问题

今天像往常一样来到单位打开电脑启动项目,想进行断点调试。可是确出现了以下情况:

D:\jdk\bin\java.exe -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:58426,suspend=y,server=n -XX:TieredStopAtLevel=1 -noverify -Dspring.profiles.active=dev -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dspring.jmx.enabled=true -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true -javaagent:D:\idea\plugins\java\lib\rt\debugger-agent.jar -Dfile.encoding=UTF-8 -classpath D:\jdk\jre\lib\charsets.jar;D:\jdk\jre\lib\deploy.jar;D:\jdk\jre\lib\ext\access-bridge-32.jar;D:\jdk\jre\lib\ext\cldrdata.jar;D:\jdk\jre\lib\ext\dnsns.jar;D:\jdk\jre\lib\ext\jaccess.jar;D:\jdk\jre\lib\ext\jfxrt.jar;D:\jdk\jre\lib\ext\localedata.jar;D:\jdk\jre\lib\ext\nashorn.jar;D:\jdk\jre\lib\ext\sunec.jar;D:\jdk\jre\lib\ext\sunjce_provider.jar;D:\jdk\jre\lib\ext\sunmscapi.jar;D:\jdk\jre\lib\ext\sunpkcs11.jar;D:\jdk\jre\lib\ext\zipfs.jar;D:\jdk\jre\lib\javaws.jar;D:\jdk\jre\lib\jce.jar;D:\jdk\jre\lib\jfr.jar;D:\jdk\jre\lib\jfxswt.jar;D:\jdk\jre\lib\jsse.jar;D:\jdk\jre\lib\management-agent.jar;D:\jdk\jre\lib\plugin.jar;D:\jdk\jre\lib\resources.jar;D:\jdk\jre\lib\rt.jar;D:\xeifeiCode\design-library-service2\target\classes;D:\mavenRepository\com\seeyon\cloud\design\design-center-shared\1.1.6.1-SNAPSHOT\design-center-shared-1.1.6.1-20210519.024114-10.jar;D:\mavenRepository\com\baomidou\mybatis-plus-annotation\3.1.2\mybatis-plus-annotation-3.1.2.jar;D:\mavenRepository\org\mybatis\mybatis\3.5.1\mybatis-3.5.1.jar;D:\mavenRepository\io\swagger\swagger-annotations\1.5.21\swagger-annotations-1.5.21.jar;D:\mavenRepository\org\projectlombok\lombok\1.18.12\lombok-1.18.12.jar;D:\mavenRepository\com\seeyon\design\design-common-util\3.3.1-SNAPSHOT\design-common-util-3.3.1-20210518.033223-19.jar;D:\mavenRepository\commons-beanutils\commons-beanutils\1.9.3\commons-beanutils-1.9.3.jar;D:\mavenRepository\commons-logging\commons-logging\1.2\commons-logging-1.2.jar;D:\mavenRepository\commons-collections\commons-collections\3.2.2\commons-collections-3.2.2.jar;D:\mavenRepository\com\seeyon\design\design-common-exception\3.3.1-SNAPSHOT\design-common-exception-3.3.1-20210518.033207-14.jar;D:\mavenRepository\cn\hutool\hutool-all\5.5.7\hutool-all-5.5.7.jar;D:\mavenRepository\com\alibaba\fastjson\1.2.73\fastjson-1.2.73.jar;D:\mavenRepository\org\apache\commons\commons-lang3\3.9\commons-lang3-3.9.jar;D:\mavenRepository\com\alibaba\easyexcel\2.1.7\easyexcel-2.1.7.jar;D:\mavenRepository\org\apache\poi\poi\3.17\poi-3.17.jar;D:\mavenRepository\org\apache\commons\commons-collections4\4.1\commons-collections4-4.1.jar;D:\mavenRepository\org\apache\poi\poi-ooxml\3.17\poi-ooxml-3.17.jar;D:\mavenRepository\org\apache\poi\poi-ooxml-schemas\3.17\poi-ooxml-schemas-3.17.jar;D:\mavenRepository\org\apache\xmlbeans\xmlbeans\2.6.0\xmlbeans-2.6.0.jar;D:\mavenRepository\stax\stax-api\1.0.1\stax-api-1.0.1.jar;D:\mavenRepository\com\github\virtuald\curvesapi\1.04\curvesapi-1.04.jar;D:\mavenRepository\cglib\cglib\3.1\cglib-3.1.jar;D:\mavenRepository\org\ow2\asm\asm\4.2\asm-4.2.jar;D:\mavenRepository\org\ehcache\ehcache\3.8.1\ehcache-3.8.1.jar;D:\mavenRepository\org\glassfish\jaxb\jaxb-runtime\2.3.2\jaxb-runtime-2.3.2.jar;D:\mavenRepository\org\glassfish\jaxb\txw2\2.3.2\txw2-2.3.2.jar;D:\mavenRepository\com\sun\istack\istack-commons-runtime\3.0.8\istack-commons-runtime-3.0.8.jar;D:\mavenRepository\org\jvnet\staxex\stax-ex\1.8.1\stax-ex-1.8.1.jar;D:\mavenRepository\com\sun\xml\fastinfoset\FastInfoset\1.2.16\FastInfoset-1.2.16.jar;D:\mavenRepository\com\seeyon\design\space\shared\1.1.6.1-SNAPSHOT\shared-1.1.6.1-20210514.074215-1.jar;D:\mavenRepository\com\seeyon\design\design-cloud-common-starter\3.3.1-SNAPSHOT\design-cloud-common-starter-3.3.1-20210427.123254-10.jar;D:\mavenRepository\com\seeyon\design\design-common-redis\3.3.1-SNAPSHOT\design-common-redis-3.3.1-20210518.033215-14.jar;D:\mavenRepository\cn\hutool\hutool-core\5.5.7\hutool-core-5.5.7.jar;D:\mavenRepository\org\springframework\boot\spring-boot-starter-aop\2.2.6.RELEASE\spring-boot-starter-aop-2.2.6.RELEASE.jar;D:\mavenRepository\org\aspectj\aspectjweaver\1.9.5\aspectjweaver-1.9.5.jar;D:\mavenRepository\org\springframework\boot\spring-boot-starter-web\2.2.6.RELEASE\spring-boot-starter-web-2.2.6.RELEASE.jar;D:\mavenRepository\org\springframework\boot\spring-boot-starter-tomcat\2.2.6.RELEASE\spring-boot-starter-tomcat-2.2.6.RELEASE.jar;D:\mavenRepository\org\apache\tomcat\embed\tomcat-embed-core\9.0.33\tomcat-embed-core-9.0.33.jar;D:\mavenRepository\org\apache\tomcat\embed\tomcat-embed-el\9.0.33\tomcat-embed-el-9.0.33.jar;D:\mavenRepository\org\apache\tomcat\embed\tomcat-embed-websocket\9.0.33\tomcat-embed-websocket-9.0.33.jar;D:\mavenRepository\org\redisson\redisson-spring-boot-starter\3.11.1\redisson-spring-boot-starter-3.11.1.jar;D:\mavenRepository\org\springframework\boot\spring-boot-starter-data-redis\2.2.6.RELEASE\spring-boot-starter-data-redis-2.2.6.RELEASE.jar;D:\mavenRepository\org\springframework\data\spring-data-redis\2.2.6.RELEASE\spring-data-redis-2.2.6.RELEASE.jar;D:\mavenRepository\org\springframework\data\spring-data-keyvalue\2.2.6.RELEASE\spring-data-keyvalue-2.2.6.RELEASE.jar;D:\mavenRepository\org\springframework\data\spring-data-commons\2.2.6.RELEASE\spring-data-commons-2.2.6.RELEASE.jar;D:\mavenRepository\org\springframework\spring-oxm\5.2.5.RELEASE\spring-oxm-5.2.5.RELEASE.jar;D:\mavenRepository\org\springframework\spring-context-support\5.2.5.RELEASE\spring-context-support-5.2.5.RELEASE.jar;D:\mavenRepository\org\redisson\redisson\3.11.1\redisson-3.11.1.jar;D:\mavenRepository\io\netty\netty-common\4.1.48.Final\netty-common-4.1.48.Final.jar;D:\mavenRepository\io\netty\netty-codec\4.1.48.Final\netty-codec-4.1.48.Final.jar;D:\mavenRepository\io\netty\netty-buffer\4.1.48.Final\netty-buffer-4.1.48.Final.jar;D:\mavenRepository\io\netty\netty-transport\4.1.48.Final\netty-transport-4.1.48.Final.jar;D:\mavenRepository\io\netty\netty-resolver-dns\4.1.48.Final\netty-resolver-dns-4.1.48.Final.jar;D:\mavenRepository\io\netty\netty-codec-dns\4.1.48.Final\netty-codec-dns-4.1.48.Final.jar;D:\mavenRepository\javax\cache\cache-api\1.1.1\cache-api-1.1.1.jar;D:\mavenRepository\io\reactivex\rxjava2\rxjava\2.2.19\rxjava-2.2.19.jar;D:\mavenRepository\de\ruedigermoeller\fst\2.57\fst-2.57.jar;D:\mavenRepository\org\javassist\javassist\3.21.0-GA\javassist-3.21.0-GA.jar;D:\mavenRepository\com\fasterxml\jackson\dataformat\jackson-dataformat-yaml\2.10.3\jackson-dataformat-yaml-2.10.3.jar;D:\mavenRepository\org\redisson\redisson-spring-data-21\3.11.1\redisson-spring-data-21-3.11.1.jar;D:\mavenRepository\com\seeyon\design\design-common-mysql\3.3.1-SNAPSHOT\design-common-mysql-3.3.1-20210427.123158-12.jar;D:\mavenRepository\com\baomidou\mybatis-plus-boot-starter\3.1.2\mybatis-plus-boot-starter-3.1.2.jar;D:\mavenRepository\com\baomidou\mybatis-plus\3.1.2\mybatis-plus-3.1.2.jar;D:\mavenRepository\com\baomidou\mybatis-plus-generator\3.1.2\mybatis-plus-generator-3.1.2.jar;D:\mavenRepository\com\baomidou\mybatis-plus-extension\3.1.2\mybatis-plus-extension-3.1.2.jar;D:\mavenRepository\com\baomidou\mybatis-plus-core\3.1.2\mybatis-plus-core-3.1.2.jar;D:\mavenRepository\org\mybatis\mybatis-spring\2.0.1\mybatis-spring-2.0.1.jar;D:\mavenRepository\org\apache\velocity\velocity-engine-core\2.0\velocity-engine-core-2.0.jar;D:\mavenRepository\org\flywaydb\flyway-core\6.0.8\flyway-core-6.0.8.jar;D:\mavenRepository\com\github\pagehelper\pagehelper-spring-boot-starter\1.2.12\pagehelper-spring-boot-starter-1.2.12.jar;D:\mavenRepository\org\mybatis\spring\boot\mybatis-spring-boot-starter\2.0.1\mybatis-spring-boot-starter-2.0.1.jar;D:\mavenRepository\org\mybatis\spring\boot\mybatis-spring-boot-autoconfigure\2.0.1\mybatis-spring-boot-autoconfigure-2.0.1.jar;D:\mavenRepository\com\github\pagehelper\pagehelper-spring-boot-autoconfigure\1.2.12\pagehelper-spring-boot-autoconfigure-1.2.12.jar;D:\mavenRepository\com\github\pagehelper\pagehelper\5.1.10\pagehelper-5.1.10.jar;D:\mavenRepository\com\github\jsqlparser\jsqlparser\2.0\jsqlparser-2.0.jar;D:\mavenRepository\com\seeyon\design\design-common-web\3.3.1-SNAPSHOT\design-common-web-3.3.1-20210427.123248-11.jar;D:\mavenRepository\com\github\xiaoymin\knife4j-spring-boot-starter\1.9.6\knife4j-spring-boot-starter-1.9.6.jar;D:\mavenRepository\com\github\xiaoymin\knife4j-spring-boot-autoconfigure\1.9.6\knife4j-spring-boot-autoconfigure-1.9.6.jar;D:\mavenRepository\com\github\xiaoymin\knife4j-spring\1.9.6\knife4j-spring-1.9.6.jar;D:\mavenRepository\com\github\xiaoymin\knife4j-annotations\1.9.6\knife4j-annotations-1.9.6.jar;D:\mavenRepository\com\github\xiaoymin\knife4j-core\1.9.6\knife4j-core-1.9.6.jar;D:\mavenRepository\io\springfox\springfox-swagger2\2.9.2\springfox-swagger2-2.9.2.jar;D:\mavenRepository\io\springfox\springfox-schema\2.9.2\springfox-schema-2.9.2.jar;D:\mavenRepository\io\springfox\springfox-swagger-common\2.9.2\springfox-swagger-common-2.9.2.jar;D:\mavenRepository\org\mapstruct\mapstruct\1.2.0.Final\mapstruct-1.2.0.Final.jar;D:\mavenRepository\io\swagger\swagger-models\1.5.21\swagger-models-1.5.21.jar;D:\mavenRepository\io\springfox\springfox-bean-validators\2.9.2\springfox-bean-validators-2.9.2.jar;D:\mavenRepository\com\github\xiaoymin\knife4j-spring-ui\1.9.6\knife4j-spring-ui-1.9.6.jar;D:\mavenRepository\io\springfox\springfox-swagger-ui\2.9.2\springfox-swagger-ui-2.9.2.jar;D:\mavenRepository\io\springfox\springfox-spring-web\2.9.2\springfox-spring-web-2.9.2.jar;D:\mavenRepository\org\springframework\plugin\spring-plugin-core\1.2.0.RELEASE\spring-plugin-core-1.2.0.RELEASE.jar;D:\mavenRepository\org\springframework\plugin\spring-plugin-metadata\1.2.0.RELEASE\spring-plugin-metadata-1.2.0.RELEASE.jar;D:\mavenRepository\io\springfox\springfox-spi\2.9.2\springfox-spi-2.9.2.jar;D:\mavenRepository\io\springfox\springfox-core\2.9.2\springfox-core-2.9.2.jar;D:\mavenRepository\com\seeyon\design\design-common-initauth-interceptor\3.3.1-SNAPSHOT\design-common-initauth-interceptor-3.3.1-20210427.123234-11.jar;D:\mavenRepository\org\apache\skywalking\apm-toolkit-trace\7.0.0\apm-toolkit-trace-7.0.0.jar;D:\mavenRepository\com\seeyon\design\design-common-log\3.3.1-SNAPSHOT\design-common-log-3.3.1-20210427.123221-11.jar;D:\mavenRepository\org\springframework\spring-webmvc\5.2.5.RELEASE\spring-webmvc-5.2.5.RELEASE.jar;D:\mavenRepository\org\jodd\jodd-bean\5.0.10\jodd-bean-5.0.10.jar;D:\mavenRepository\org\jodd\jodd-core\5.0.10\jodd-core-5.0.10.jar;D:\mavenRepository\com\google\guava\guava\29.0-jre\guava-29.0-jre.jar;D:\mavenRepository\com\google\guava\failureaccess\1.0.1\failureaccess-1.0.1.jar;D:\mavenRepository\com\google\guava\listenablefuture\9999.0-empty-to-avoid-conflict-with-guava\listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar;D:\mavenRepository\com\google\code\findbugs\jsr305\3.0.2\jsr305-3.0.2.jar;D:\mavenRepository\org\checkerframework\checker-qual\2.11.1\checker-qual-2.11.1.jar;D:\mavenRepository\com\google\errorprone\error_prone_annotations\2.3.4\error_prone_annotations-2.3.4.jar;D:\mavenRepository\com\google\j2objc\j2objc-annotations\1.3\j2objc-annotations-1.3.jar;D:\mavenRepository\javax\servlet\javax.servlet-api\4.0.1\javax.servlet-api-4.0.1.jar;D:\mavenRepository\com\alibaba\transmittable-thread-local\2.12.1\transmittable-thread-local-2.12.1.jar;D:\mavenRepository\com\seeyon\design\design-common-configuration\3.3.1-SNAPSHOT\design-common-configuration-3.3.1-20210427.123217-11.jar;D:\mavenRepository\com\seeyon\cloud\spring-cloud-starter-shared-config\1.0.0-SNAPSHOT\spring-cloud-starter-shared-config-1.0.0-20201103.054115-2.jar;D:\mavenRepository\com\alibaba\cloud\spring-cloud-starter-alibaba-nacos-config\2.2.1.RELEASE\spring-cloud-starter-alibaba-nacos-config-2.2.1.RELEASE.jar;D:\mavenRepository\com\alibaba\spring\spring-context-support\1.0.6\spring-context-support-1.0.6.jar;D:\mavenRepository\com\alibaba\nacos\nacos-client\1.2.1\nacos-client-1.2.1.jar;D:\mavenRepository\com\alibaba\nacos\nacos-common\1.2.1\nacos-common-1.2.1.jar;D:\mavenRepository\commons-io\commons-io\2.2\commons-io-2.2.jar;D:\mavenRepository\com\alibaba\nacos\nacos-api\1.2.1\nacos-api-1.2.1.jar;D:\mavenRepository\io\prometheus\simpleclient\0.5.0\simpleclient-0.5.0.jar;D:\mavenRepository\org\springframework\cloud\spring-cloud-commons\2.2.5.RELEASE\spring-cloud-commons-2.2.5.RELEASE.jar;D:\mavenRepository\com\alibaba\cloud\spring-cloud-starter-alibaba-nacos-discovery\2.2.1.RELEASE\spring-cloud-starter-alibaba-nacos-discovery-2.2.1.RELEASE.jar;D:\mavenRepository\org\springframework\cloud\spring-cloud-starter-netflix-ribbon\2.2.5.RELEASE\spring-cloud-starter-netflix-ribbon-2.2.5.RELEASE.jar;D:\mavenRepository\org\springframework\cloud\spring-cloud-netflix-ribbon\2.2.5.RELEASE\spring-cloud-netflix-ribbon-2.2.5.RELEASE.jar;D:\mavenRepository\org\springframework\cloud\spring-cloud-netflix-archaius\2.2.5.RELEASE\spring-cloud-netflix-archaius-2.2.5.RELEASE.jar;D:\mavenRepository\org\springframework\cloud\spring-cloud-starter-netflix-archaius\2.2.5.RELEASE\spring-cloud-starter-netflix-archaius-2.2.5.RELEASE.jar;D:\mavenRepository\commons-configuration\commons-configuration\1.8\commons-configuration-1.8.jar;D:\mavenRepository\com\netflix\ribbon\ribbon\2.3.0\ribbon-2.3.0.jar;D:\mavenRepository\com\netflix\ribbon\ribbon-transport\2.3.0\ribbon-transport-2.3.0.jar;D:\mavenRepository\io\reactivex\rxnetty-contexts\0.4.9\rxnetty-contexts-0.4.9.jar;D:\mavenRepository\io\reactivex\rxnetty-servo\0.4.9\rxnetty-servo-0.4.9.jar;D:\mavenRepository\javax\inject\javax.inject\1\javax.inject-1.jar;D:\mavenRepository\io\reactivex\rxnetty\0.4.9\rxnetty-0.4.9.jar;D:\mavenRepository\com\netflix\ribbon\ribbon-core\2.3.0\ribbon-core-2.3.0.jar;D:\mavenRepository\commons-lang\commons-lang\2.6\commons-lang-2.6.jar;D:\mavenRepository\com\netflix\ribbon\ribbon-httpclient\2.3.0\ribbon-httpclient-2.3.0.jar;D:\mavenRepository\com\sun\jersey\jersey-client\1.19.1\jersey-client-1.19.1.jar;D:\mavenRepository\com\sun\jersey\jersey-core\1.19.1\jersey-core-1.19.1.jar;D:\mavenRepository\javax\ws\rs\jsr311-api\1.1.1\jsr311-api-1.1.1.jar;D:\mavenRepository\com\sun\jersey\contribs\jersey-apache-client4\1.19.1\jersey-apache-client4-1.19.1.jar;D:\mavenRepository\com\netflix\servo\servo-core\0.12.21\servo-core-0.12.21.jar;D:\mavenRepository\com\netflix\netflix-commons\netflix-commons-util\0.3.0\netflix-commons-util-0.3.0.jar;D:\mavenRepository\com\netflix\ribbon\ribbon-loadbalancer\2.3.0\ribbon-loadbalancer-2.3.0.jar;D:\mavenRepository\com\netflix\netflix-commons\netflix-statistics\0.1.1\netflix-statistics-0.1.1.jar;D:\mavenRepository\io\reactivex\rxjava\1.3.8\rxjava-1.3.8.jar;D:\mavenRepository\org\springframework\boot\spring-boot-starter-actuator\2.2.6.RELEASE\spring-boot-starter-actuator-2.2.6.RELEASE.jar;D:\mavenRepository\org\springframework\boot\spring-boot-actuator-autoconfigure\2.2.6.RELEASE\spring-boot-actuator-autoconfigure-2.2.6.RELEASE.jar;D:\mavenRepository\org\springframework\boot\spring-boot-actuator\2.2.6.RELEASE\spring-boot-actuator-2.2.6.RELEASE.jar;D:\mavenRepository\io\micrometer\micrometer-core\1.3.6\micrometer-core-1.3.6.jar;D:\mavenRepository\org\hdrhistogram\HdrHistogram\2.1.11\HdrHistogram-2.1.11.jar;D:\mavenRepository\org\latencyutils\LatencyUtils\2.0.3\LatencyUtils-2.0.3.jar;D:\mavenRepository\io\micrometer\micrometer-registry-prometheus\1.3.1\micrometer-registry-prometheus-1.3.1.jar;D:\mavenRepository\io\prometheus\simpleclient_common\0.7.0\simpleclient_common-0.7.0.jar;D:\mavenRepository\com\seeyon\design\design-common-client-rest\3.3.1-SNAPSHOT\design-common-client-rest-3.3.1-20210428.054914-13.jar;D:\mavenRepository\org\springframework\cloud\spring-cloud-context\2.2.5.RELEASE\spring-cloud-context-2.2.5.RELEASE.jar;D:\mavenRepository\org\springframework\security\spring-security-crypto\5.2.2.RELEASE\spring-security-crypto-5.2.2.RELEASE.jar;D:\mavenRepository\com\seeyon\design\design-common-protect\3.3.1-SNAPSHOT\design-common-protect-3.3.1-20210427.123245-14.jar;D:\mavenRepository\org\springframework\cloud\spring-cloud-starter-openfeign\2.2.5.RELEASE\spring-cloud-starter-openfeign-2.2.5.RELEASE.jar;D:\mavenRepository\org\springframework\cloud\spring-cloud-starter\2.2.5.RELEASE\spring-cloud-starter-2.2.5.RELEASE.jar;D:\mavenRepository\org\springframework\security\spring-security-rsa\1.0.9.RELEASE\spring-security-rsa-1.0.9.RELEASE.jar;D:\mavenRepository\org\bouncycastle\bcpkix-jdk15on\1.64\bcpkix-jdk15on-1.64.jar;D:\mavenRepository\org\bouncycastle\bcprov-jdk15on\1.64\bcprov-jdk15on-1.64.jar;D:\mavenRepository\org\springframework\cloud\spring-cloud-openfeign-core\2.2.5.RELEASE\spring-cloud-openfeign-core-2.2.5.RELEASE.jar;D:\mavenRepository\io\github\openfeign\form\feign-form-spring\3.8.0\feign-form-spring-3.8.0.jar;D:\mavenRepository\io\github\openfeign\form\feign-form\3.8.0\feign-form-3.8.0.jar;D:\mavenRepository\commons-fileupload\commons-fileupload\1.4\commons-fileupload-1.4.jar;D:\mavenRepository\io\github\openfeign\feign-core\10.10.1\feign-core-10.10.1.jar;D:\mavenRepository\io\github\openfeign\feign-slf4j\10.10.1\feign-slf4j-10.10.1.jar;D:\mavenRepository\io\github\openfeign\feign-hystrix\10.10.1\feign-hystrix-10.10.1.jar;D:\mavenRepository\com\netflix\archaius\archaius-core\0.7.6\archaius-core-0.7.6.jar;D:\mavenRepository\com\netflix\hystrix\hystrix-core\1.5.18\hystrix-core-1.5.18.jar;D:\mavenRepository\com\alibaba\cloud\spring-cloud-starter-alibaba-sentinel\2.2.1.RELEASE\spring-cloud-starter-alibaba-sentinel-2.2.1.RELEASE.jar;D:\mavenRepository\com\alibaba\csp\sentinel-annotation-aspectj\1.7.1\sentinel-annotation-aspectj-1.7.1.jar;D:\mavenRepository\org\aspectj\aspectjrt\1.9.5\aspectjrt-1.9.5.jar;D:\mavenRepository\com\alibaba\cloud\spring-cloud-circuitbreaker-sentinel\2.2.1.RELEASE\spring-cloud-circuitbreaker-sentinel-2.2.1.RELEASE.jar;D:\mavenRepository\com\alibaba\csp\sentinel-reactor-adapter\1.7.1\sentinel-reactor-adapter-1.7.1.jar;D:\mavenRepository\com\alibaba\csp\sentinel-spring-webflux-adapter\1.7.1\sentinel-spring-webflux-adapter-1.7.1.jar;D:\mavenRepository\com\alibaba\csp\sentinel-spring-webmvc-adapter\1.7.1\sentinel-spring-webmvc-adapter-1.7.1.jar;D:\mavenRepository\com\alibaba\csp\sentinel-parameter-flow-control\1.7.1\sentinel-parameter-flow-control-1.7.1.jar;D:\mavenRepository\com\googlecode\concurrentlinkedhashmap\concurrentlinkedhashmap-lru\1.4.2\concurrentlinkedhashmap-lru-1.4.2.jar;D:\mavenRepository\com\alibaba\csp\sentinel-cluster-server-default\1.7.1\sentinel-cluster-server-default-1.7.1.jar;D:\mavenRepository\com\alibaba\csp\sentinel-cluster-common-default\1.7.1\sentinel-cluster-common-default-1.7.1.jar;D:\mavenRepository\com\alibaba\csp\sentinel-cluster-client-default\1.7.1\sentinel-cluster-client-default-1.7.1.jar;D:\mavenRepository\com\alibaba\cloud\spring-cloud-alibaba-sentinel-datasource\2.2.1.RELEASE\spring-cloud-alibaba-sentinel-datasource-2.2.1.RELEASE.jar;D:\mavenRepository\com\alibaba\csp\sentinel-core\1.7.1\sentinel-core-1.7.1.jar;D:\mavenRepository\com\alibaba\csp\sentinel-transport-simple-http\1.7.1\sentinel-transport-simple-http-1.7.1.jar;D:\mavenRepository\com\alibaba\csp\sentinel-transport-common\1.7.1\sentinel-transport-common-1.7.1.jar;D:\mavenRepository\com\alibaba\csp\sentinel-datasource-nacos\1.7.1\sentinel-datasource-nacos-1.7.1.jar;D:\mavenRepository\com\alibaba\csp\sentinel-datasource-extension\1.7.1\sentinel-datasource-extension-1.7.1.jar;D:\mavenRepository\com\seeyon\design\design-common-v5rest\3.3.1-SNAPSHOT\design-common-v5rest-3.3.1-20210513.101639-23.jar;D:\mavenRepository\com\seeyon\design\design-common-entity\3.3.1-SNAPSHOT\design-common-entity-3.3.1-20210518.033200-20.jar;D:\mavenRepository\com\seeyon\wfutils\1.1\wfutils-1.1.jar;D:\mavenRepository\com\seeyon\design\design-common-metrics\3.3.1-SNAPSHOT\design-common-metrics-3.3.1-20210518.033230-14.jar;D:\mavenRepository\com\seeyon\design\design-common-ribbon\3.3.1-SNAPSHOT\design-common-ribbon-3.3.1-20210427.123208-12.jar;D:\mavenRepository\cn\hutool\hutool-json\5.5.7\hutool-json-5.5.7.jar;D:\mavenRepository\com\seeyon\xt\platform\seeyon-xt-common-core-security\2.0.0.1-SNAPSHOT\seeyon-xt-common-core-security-2.0.0.1-20201210.024624-1.jar;D:\mavenRepository\io\jsonwebtoken\jjwt-api\0.10.6\jjwt-api-0.10.6.jar;D:\mavenRepository\io\jsonwebtoken\jjwt-impl\0.10.6\jjwt-impl-0.10.6.jar;D:\mavenRepository\io\jsonwebtoken\jjwt-jackson\0.10.6\jjwt-jackson-0.10.6.jar;D:\mavenRepository\org\springframework\security\spring-security-core\5.2.2.RELEASE\spring-security-core-5.2.2.RELEASE.jar;D:\mavenRepository\org\springframework\spring-aop\5.2.5.RELEASE\spring-aop-5.2.5.RELEASE.jar;D:\mavenRepository\org\springframework\spring-beans\5.2.5.RELEASE\spring-beans-5.2.5.RELEASE.jar;D:\mavenRepository\org\springframework\spring-context\5.2.5.RELEASE\spring-context-5.2.5.RELEASE.jar;D:\mavenRepository\org\springframework\spring-core\5.2.5.RELEASE\spring-core-5.2.5.RELEASE.jar;D:\mavenRepository\org\springframework\spring-jcl\5.2.5.RELEASE\spring-jcl-5.2.5.RELEASE.jar;D:\mavenRepository\org\springframework\spring-expression\5.2.5.RELEASE\spring-expression-5.2.5.RELEASE.jar;D:\mavenRepository\org\springframework\boot\spring-boot-starter-webflux\2.2.6.RELEASE\spring-boot-starter-webflux-2.2.6.RELEASE.jar;D:\mavenRepository\org\springframework\boot\spring-boot-starter\2.2.6.RELEASE\spring-boot-starter-2.2.6.RELEASE.jar;D:\mavenRepository\org\springframework\boot\spring-boot-autoconfigure\2.2.6.RELEASE\spring-boot-autoconfigure-2.2.6.RELEASE.jar;D:\mavenRepository\org\springframework\boot\spring-boot-starter-logging\2.2.6.RELEASE\spring-boot-starter-logging-2.2.6.RELEASE.jar;D:\mavenRepository\ch\qos\logback\logback-classic\1.2.3\logback-classic-1.2.3.jar;D:\mavenRepository\ch\qos\logback\logback-core\1.2.3\logback-core-1.2.3.jar;D:\mavenRepository\org\apache\logging\log4j\log4j-to-slf4j\2.12.1\log4j-to-slf4j-2.12.1.jar;D:\mavenRepository\org\slf4j\jul-to-slf4j\1.7.30\jul-to-slf4j-1.7.30.jar;D:\mavenRepository\jakarta\annotation\jakarta.annotation-api\1.3.5\jakarta.annotation-api-1.3.5.jar;D:\mavenRepository\org\yaml\snakeyaml\1.25\snakeyaml-1.25.jar;D:\mavenRepository\org\springframework\boot\spring-boot-starter-json\2.2.6.RELEASE\spring-boot-starter-json-2.2.6.RELEASE.jar;D:\mavenRepository\com\fasterxml\jackson\core\jackson-databind\2.10.3\jackson-databind-2.10.3.jar;D:\mavenRepository\com\fasterxml\jackson\core\jackson-annotations\2.10.3\jackson-annotations-2.10.3.jar;D:\mavenRepository\com\fasterxml\jackson\core\jackson-core\2.10.3\jackson-core-2.10.3.jar;D:\mavenRepository\com\fasterxml\jackson\datatype\jackson-datatype-jdk8\2.10.3\jackson-datatype-jdk8-2.10.3.jar;D:\mavenRepository\com\fasterxml\jackson\datatype\jackson-datatype-jsr310\2.10.3\jackson-datatype-jsr310-2.10.3.jar;D:\mavenRepository\com\fasterxml\jackson\module\jackson-module-parameter-names\2.10.3\jackson-module-parameter-names-2.10.3.jar;D:\mavenRepository\org\springframework\boot\spring-boot-starter-reactor-netty\2.2.6.RELEASE\spring-boot-starter-reactor-netty-2.2.6.RELEASE.jar;D:\mavenRepository\io\projectreactor\netty\reactor-netty\0.9.6.RELEASE\reactor-netty-0.9.6.RELEASE.jar;D:\mavenRepository\io\netty\netty-codec-http\4.1.48.Final\netty-codec-http-4.1.48.Final.jar;D:\mavenRepository\io\netty\netty-codec-http2\4.1.48.Final\netty-codec-http2-4.1.48.Final.jar;D:\mavenRepository\io\netty\netty-handler\4.1.48.Final\netty-handler-4.1.48.Final.jar;D:\mavenRepository\io\netty\netty-resolver\4.1.48.Final\netty-resolver-4.1.48.Final.jar;D:\mavenRepository\io\netty\netty-handler-proxy\4.1.48.Final\netty-handler-proxy-4.1.48.Final.jar;D:\mavenRepository\io\netty\netty-codec-socks\4.1.48.Final\netty-codec-socks-4.1.48.Final.jar;D:\mavenRepository\io\netty\netty-transport-native-epoll\4.1.48.Final\netty-transport-native-epoll-4.1.48.Final-linux-x86_64.jar;D:\mavenRepository\io\netty\netty-transport-native-unix-common\4.1.48.Final\netty-transport-native-unix-common-4.1.48.Final.jar;D:\mavenRepository\org\glassfish\jakarta.el\3.0.3\jakarta.el-3.0.3.jar;D:\mavenRepository\org\springframework\boot\spring-boot-starter-validation\2.2.6.RELEASE\spring-boot-starter-validation-2.2.6.RELEASE.jar;D:\mavenRepository\jakarta\validation\jakarta.validation-api\2.0.2\jakarta.validation-api-2.0.2.jar;D:\mavenRepository\org\hibernate\validator\hibernate-validator\6.0.18.Final\hibernate-validator-6.0.18.Final.jar;D:\mavenRepository\org\jboss\logging\jboss-logging\3.4.1.Final\jboss-logging-3.4.1.Final.jar;D:\mavenRepository\com\fasterxml\classmate\1.5.1\classmate-1.5.1.jar;D:\mavenRepository\org\springframework\spring-web\5.2.5.RELEASE\spring-web-5.2.5.RELEASE.jar;D:\mavenRepository\org\springframework\spring-webflux\5.2.5.RELEASE\spring-webflux-5.2.5.RELEASE.jar;D:\mavenRepository\io\projectreactor\reactor-core\3.3.4.RELEASE\reactor-core-3.3.4.RELEASE.jar;D:\mavenRepository\org\reactivestreams\reactive-streams\1.0.3\reactive-streams-1.0.3.jar;D:\mavenRepository\org\synchronoss\cloud\nio-multipart-parser\1.1.0\nio-multipart-parser-1.1.0.jar;D:\mavenRepository\org\synchronoss\cloud\nio-stream-storage\1.1.3\nio-stream-storage-1.1.3.jar;D:\mavenRepository\org\springframework\kafka\spring-kafka\2.3.7.RELEASE\spring-kafka-2.3.7.RELEASE.jar;D:\mavenRepository\org\apache\kafka\kafka-clients\2.3.1\kafka-clients-2.3.1.jar;D:\mavenRepository\com\github\luben\zstd-jni\1.4.0-1\zstd-jni-1.4.0-1.jar;D:\mavenRepository\org\lz4\lz4-java\1.6.0\lz4-java-1.6.0.jar;D:\mavenRepository\org\xerial\snappy\snappy-java\1.1.7.3\snappy-java-1.1.7.3.jar;D:\mavenRepository\org\springframework\retry\spring-retry\1.2.5.RELEASE\spring-retry-1.2.5.RELEASE.jar;D:\mavenRepository\org\springframework\spring-messaging\5.2.5.RELEASE\spring-messaging-5.2.5.RELEASE.jar;D:\mavenRepository\org\springframework\spring-tx\5.2.5.RELEASE\spring-tx-5.2.5.RELEASE.jar;D:\mavenRepository\org\apache\kafka\kafka-streams\2.3.1\kafka-streams-2.3.1.jar;D:\mavenRepository\org\apache\kafka\connect-json\2.3.1\connect-json-2.3.1.jar;D:\mavenRepository\org\apache\kafka\connect-api\2.3.1\connect-api-2.3.1.jar;D:\mavenRepository\org\slf4j\slf4j-api\1.7.30\slf4j-api-1.7.30.jar;D:\mavenRepository\org\rocksdb\rocksdbjni\5.18.3\rocksdbjni-5.18.3.jar;D:\mavenRepository\org\apache\httpcomponents\httpclient\4.5.12\httpclient-4.5.12.jar;D:\mavenRepository\org\apache\httpcomponents\httpcore\4.4.13\httpcore-4.4.13.jar;D:\mavenRepository\commons-codec\commons-codec\1.13\commons-codec-1.13.jar;D:\mavenRepository\com\seeyon\capp\common-oss\2.6-SNAPSHOT\common-oss-2.6-20200325.071242-2.jar;D:\mavenRepository\com\seeyon\capp\common-huaweiobs\1.0-SNAPSHOT\common-huaweiobs-1.0-SNAPSHOT.jar;D:\mavenRepository\com\huawei\esdk-obs-java\3.0.3\esdk-obs-java-3.0.3.jar;D:\mavenRepository\com\squareup\okhttp3\okhttp\3.14.4\okhttp-3.14.4.jar;D:\mavenRepository\com\squareup\okio\okio\1.14.0\okio-1.14.0.jar;D:\mavenRepository\org\apache\logging\log4j\log4j-core\2.12.1\log4j-core-2.12.1.jar;D:\mavenRepository\org\apache\logging\log4j\log4j-api\2.12.1\log4j-api-2.12.1.jar;D:\mavenRepository\com\jamesmurty\utils\java-xmlbuilder\1.1\java-xmlbuilder-1.1.jar;D:\mavenRepository\net\iharder\base64\2.3.8\base64-2.3.8.jar;D:\mavenRepository\com\seeyon\capp\id-creator\1.1-SNAPSHOT\id-creator-1.1-20200414.022352-1.jar;D:\mavenRepository\org\springframework\boot\spring-boot\2.2.6.RELEASE\spring-boot-2.2.6.RELEASE.jar;D:\mavenRepository\org\springframework\boot\spring-boot-starter-jdbc\2.2.6.RELEASE\spring-boot-starter-jdbc-2.2.6.RELEASE.jar;D:\mavenRepository\com\zaxxer\HikariCP\3.4.2\HikariCP-3.4.2.jar;D:\mavenRepository\org\springframework\spring-jdbc\5.2.5.RELEASE\spring-jdbc-5.2.5.RELEASE.jar;D:\mavenRepository\redis\clients\jedis\3.1.0\jedis-3.1.0.jar;D:\mavenRepository\org\apache\commons\commons-pool2\2.7.0\commons-pool2-2.7.0.jar;D:\mavenRepository\mysql\mysql-connector-java\8.0.19\mysql-connector-java-8.0.19.jar;D:\mavenRepository\net\lingala\zip4j\zip4j\1.3.2\zip4j-1.3.2.jar;D:\mavenRepository\com\google\zxing\core\3.4.1\core-3.4.1.jar;D:\mavenRepository\jakarta\xml\bind\jakarta.xml.bind-api\2.3.3\jakarta.xml.bind-api-2.3.3.jar;D:\mavenRepository\jakarta\activation\jakarta.activation-api\1.2.2\jakarta.activation-api-1.2.2.jar;D:\mavenRepository\net\bytebuddy\byte-buddy\1.10.8\byte-buddy-1.10.8.jar;D:\mavenRepository\org\objenesis\objenesis\2.6\objenesis-2.6.jar;D:\mavenRepository\org\mybatis\generator\mybatis-generator-core\1.3.7\mybatis-generator-core-1.3.7.jar;D:\idea\lib\idea_rt.jar com.seeyon.design.DesignLibraryServiceApplication
Connected to the target VM, address: '127.0.0.1:58426', transport: 'socket'

  .   ____          _            __ _ _
 /\\ / ___'_ __ _ _(_)_ __  __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
 \\/  ___)| |_)| | | | | || (_| |  ) ) ) )
  '  |____| .__|_| |_|_| |_\__, | / / / /
 =========|_|==============|___/=/_/_/_/
 :: Spring Boot ::        (v2.2.6.RELEASE)

2021-05-20 13:49:09.919  INFO 11688 --- [           main] c.a.n.c.c.impl.LocalConfigInfoProcessor  : LOCAL_SNAPSHOT_PATH:C:\Users\86184\nacos\config
2021-05-20 13:49:09.949  INFO 11688 --- [           main] c.a.nacos.client.config.impl.Limiter     : limitTime:5.0
2021-05-20 13:49:10.011  INFO 11688 --- [           main] c.a.nacos.client.config.utils.JVMUtil    : isMultiInstance:false
2021-05-20 13:49:10.295  WARN 11688 --- [           main] c.a.c.n.c.NacosPropertySourceBuilder     : Ignore the empty nacos configuration and get it based on dataId[null.properties] & group[DEFAULT_GROUP]
2021-05-20 13:49:10.336  WARN 11688 --- [           main] c.a.c.n.c.NacosPropertySourceBuilder     : Ignore the empty nacos configuration and get it based on dataId[null-dev.properties] & group[DEFAULT_GROUP]
2021-05-20 13:49:10.337  INFO 11688 --- [           main] b.c.PropertySourceBootstrapConfiguration : Located property source: [BootstrapPropertySource {name='bootstrapProperties-null-dev.properties,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-null.properties,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-design-protect.yaml,FOUNDATION_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-design-common-logback.yaml,FOUNDATION_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-shared-jwt.yaml,FOUNDATION_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-package-file-version.properties,FOUNDATION_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-redis.yaml,FOUNDATION_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-design-library-service.yaml,APPLICATION_GROUP'}]
2021-05-20 13:49:10.514  INFO 11688 --- [           main] b.c.PropertySourceBootstrapConfiguration : Located property source: [BootstrapPropertySource {name='bootstrapProperties-spring.cloud.seeyon.config'}]
LOGBACK: No context given for c.q.l.core.rolling.SizeAndTimeBasedRollingPolicy@9264851
2021-05-20 13:49:10.571 INFO 11688 --- [           main] c.s.d.DesignLibraryServiceApplication    : The following profiles are active: dev
2021-05-20 13:49:13.753 INFO 11688 --- [           main] o.m.s.mapper.ClassPathMapperScanner      : No MyBatis mapper was found in '[com.seeyon..*.mapper]' package. Please check your configuration.
2021-05-20 13:49:13.902 INFO 11688 --- [           main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.support.BeanDefinitionOverrideException: Invalid bean definition with name 'design-center-service.FeignClientSpecification' defined in null: Cannot register bean definition [Generic bean: class [org.springframework.cloud.openfeign.FeignClientSpecification]; scope=; abstract=false; lazyInit=null; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null] for bean 'design-center-service.FeignClientSpecification': There is already [Generic bean: class [org.springframework.cloud.openfeign.FeignClientSpecification]; scope=; abstract=false; lazyInit=null; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null] bound.
2021-05-20 13:49:13.910 INFO 11688 --- [           main] ConditionEvaluationReportLoggingListener : 

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2021-05-20 13:49:13.922 INFO 11688 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   : 

***************************
APPLICATION FAILED TO START
***************************

Description:

The bean 'design-center-service.FeignClientSpecification' could not be registered. A bean with that name has already been defined and overriding is disabled.

Action:

Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding=true

Disconnected from the target VM, address: '127.0.0.1:58426', transport: 'socket'

Process finished with exit code 1

关键信息:

The bean 'design-center-service.FeignClientSpecification' could not be registered. A bean with that name has already been defined and overriding is disabled.

Spring在初始化bean的时候出现了同名的Bean,并且指明了Bean的名字为:
design-center-service.FeignClientSpecification

于是我去检查相关的Feign:
在这里插入图片描述
果然发现这里有三个feign都是调用的同一个地址。但是spring有配置允许在spring容器中有同名的Bean,这个配置为:

spring:main:allow-bean-definition-overriding: true

寻找错误原因

于是我去寻找是否有这个配置,首先找到配置文件bootsrap.yaml:我启动的时候使用的Active Profiles:dev

#开发环境
---
spring:
  profiles: dev
  cloud:
    seeyon:
      config:
        server-addr: http://nacos-cce.*****.*****.*****.site:80
        namespace: *****-7020-*****-ba55-bdfc0b227279
        password: ***********************************
        username: clouddesign
    nacos:
      config:
        server-addr: nacos-cce.*****.*****.*****.site:80
        namespace: *****-4c12-b040-e3e3a1e65234
        username: clouddesign
        password: *****vfzh17P

找到对应的配置文件:

mybatis-plus:
  mapper-locations: classpath:/mapper/--.xml     
server:
  port: 8110
  servlet:
    context-path: /designLibrary
spring:
  main:
    allow-bean-definition-overriding: true
  flyway:
    enabled: false
  cloud:
    consul:
      discovery:
        healthCheckPath: ${server.servlet.context-path}/actuator/health
  application:
    name: design-library-service
    ......

上来第三句就是我之前提到的开启Sring容器可以存放同名bean的配置:

spring:
  main:
    allow-bean-definition-overriding: true

难道是这个配置文件spring没有加载到?于是我决定断点跟踪Spring的初始化过程,特别是上下文!

跟踪启动类流程

  1. 启动类断点
    在这里插入图片描述

  2. 进入容器初始化代码,此时上下文还是空的
    在这里插入图片描述

  3. 环境加载成功
    环境变量加载成功,但是里面确没有加载到我们在Nocas中配置的信息。
    在这里插入图片描述

  4. 初始化上下文
    在这里插入图片描述
    但是此时上下文中还没有读取到配置文件信息,这是因为此时上下文还没有绑定环境变量!
    在这里插入图片描述

  5. 上下文绑定环境变量
    在这里插入图片描述
    此时上下文中已经获取到了yaml中的相关信息:
    在这里插入图片描述
    而控制台此时还在容器初始化的状态:
    在这里插入图片描述
    我们再来仔细看看这时候读取到的yaml中信息:
    在这里插入图片描述
    和我们配置文件中的一模一样,但是接着往下走控制台报错:
    初始化bean时出现同名的Bean,我们再Nocas中配置的文件根本没有生效!!!
    在这里插入图片描述

我们此时将Nocas配置文件中的允许重名Bean的配置移动到boostrap.yaml文件中:

spring:
  main:
    allow-bean-definition-overriding: true
  profiles: dev

再次启动项目并查看上下文信息:
在这里插入图片描述

果然出现了我们的配置文件,同事项目成功启动!

2021-05-20 15:13:15.160 INFO 7276 --- [ntainer#2-0-C-1] o.a.k.c.c.internals.AbstractCoordinator  : [Consumer clientId=consumer-1, groupId=design-center] (Re-)joining group
2021-05-20 15:13:15.160 INFO 7276 --- [ntainer#0-0-C-1] o.a.k.c.c.internals.AbstractCoordinator  : [Consumer clientId=consumer-2, groupId=v5plus] (Re-)joining group
2021-05-20 15:13:15.208 INFO 7276 --- [           main] s.d.s.w.r.p.ParameterDataTypeReader      : Trying to infer dataType org.springframework.web.multipart.MultipartFile[]
2021-05-20 15:13:15.273 INFO 7276 --- [           main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: uploadPicUsingPOST_1
2021-05-20 15:13:15.408 INFO 7276 --- [           main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: getTagTreeByIdUsingGET_1
2021-05-20 15:13:15.445 INFO 7276 --- [           main] .d.s.w.r.o.CachingOperationNameGenerator : Generating unique operation named: listUsingPOST_1
2021-05-20 15:13:15.778 INFO 7276 --- [           main] o.s.b.w.embedded.tomcat.TomcatWebServer  : Tomcat started on port(s): 8110 (http) with context path '/designLibrary'
2021-05-20 15:13:16.066 INFO 7276 --- [           main] com.alibaba.nacos.client.naming          : [BEAT] adding beat: {"cluster":"DEFAULT","ip":"10.50.3.246","metadata":{"management.endpoints.web.base-path":"/actuator","preserved.register.source":"SPRING_CLOUD"},"period":5000,"port":8110,"scheduled":false,"serviceName":"DEFAULT_GROUP@@design-library-service-xf","stopped":false,"weight":1.0} to beat map.
2021-05-20 15:13:16.091 INFO 7276 --- [           main] com.alibaba.nacos.client.naming          : [REGISTER-SERVICE] 2ca0406b-7020-4dd2-ba55-bdfc0b227279 registering service DEFAULT_GROUP@@design-library-service-xf with instance: {"clusterName":"DEFAULT","enabled":true,"ephemeral":true,"healthy":true,"instanceHeartBeatInterval":5000,"instanceHeartBeatTimeOut":15000,"ip":"10.50.3.246","ipDeleteTimeout":30000,"metadata":{"management.endpoints.web.base-path":"/actuator","preserved.register.source":"SPRING_CLOUD"},"port":8110,"weight":1.0}
2021-05-20 15:13:16.179 INFO 7276 --- [           main] c.a.c.n.registry.NacosServiceRegistry    : nacos registry, DEFAULT_GROUP design-library-service-xf 10.50.3.246:8110 register finished
2021-05-20 15:13:16.440 INFO 7276 --- [ntainer#0-0-C-1] o.a.k.c.c.internals.AbstractCoordinator  : [Consumer clientId=consumer-2, groupId=v5plus] Successfully joined group with generation 9410
2021-05-20 15:13:16.442 INFO 7276 --- [ntainer#0-0-C-1] o.a.k.c.c.internals.ConsumerCoordinator  : [Consumer clientId=consumer-2, groupId=v5plus] Setting newly assigned partitions: 
2021-05-20 15:13:16.442 INFO 7276 --- [ntainer#0-0-C-1] o.s.k.l.KafkaMessageListenerContainer    : v5plus: partitions assigned: []
2021-05-20 15:13:16.468 INFO 7276 --- [           main] c.s.d.DesignLibraryServiceApplication    : Started DesignLibraryServiceApplication in 118.643 seconds (JVM running for 119.782)

总结

这充分说明了一个问题:

Spring中动态读取配置中心配置实在SpringBean初始化完成之后加载的!!!

Spring的水太深,我把我不住,流下了泪水。
在这里插入图片描述
谢谢大家!祝升职加薪发大财!!

  • 0
    点赞
  • 0
    评论
  • 0
    收藏
  • 打赏
    打赏
  • 扫一扫,分享海报

参与评论
请先登录 后发表评论~
©️2021 CSDN 皮肤主题: 大白 设计师:CSDN官方博客 返回首页

打赏作者

ClavinXie

你的鼓励将是我创作的最大动力

¥2 ¥4 ¥6 ¥10 ¥20
输入1-500的整数
余额支付 (余额:-- )
扫码支付
扫码支付:¥2
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、C币套餐、付费专栏及课程。

余额充值