一、该问题的重现步骤是什么?
1. 创建了一个新的服务
2. 给新的服务在nacos配置了一个专门的配置文件
3.修改application-dev.yml文件
4.修改nacos共享配置,且启动时显示加载到了新的配置文件
5.但是在启动时报错
图片中超出的两行分别为:
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'templateController' defined in file [/Users/wensheng/workspace/code/SupervisionCloud/supervision-service/supervision-usual/target/classes/org/caisheng/usual/controller/TemplateController.class]: Unsatisfied dependency expressed through constructor parameter 0: Error creating bean with name 'templateServiceImpl': Unsatisfied dependency expressed through field 'baseMapper': Error creating bean with name 'templateMapper' defined in file [/Users/wensheng/workspace/code/SupervisionCloud/supervision-service/supervision-usual/target/classes/org/caisheng/usual/mapper/TemplateMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory': Error creating bean with name 'com.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration': Failed to instantiate [com.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration]: Constructor threw exception
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'templateServiceImpl': Unsatisfied dependency expressed through field 'baseMapper': Error creating bean with name 'templateMapper' defined in file [/Users/wensheng/workspace/code/SupervisionCloud/supervision-service/supervision-usual/target/classes/org/caisheng/usual/mapper/TemplateMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory': Error creating bean with name 'com.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration': Failed to instantiate [com.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration]: Constructor threw exception
图片中超出的两行分别为:
Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'templateMapper' defined in file [/Users/wensheng/workspace/code/SupervisionCloud/supervision-service/supervision-usual/target/classes/org/caisheng/usual/mapper/TemplateMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory': Error creating bean with name 'com.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration': Failed to instantiate [com.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration]: Constructor threw exception
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration': Failed to instantiate [com.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration]: Constructor threw exception
二、你期待的结果是什么?实际看到的又是什么?
期待可以正常启动,且数据库配置读取到的是新增配置文件中的数据库
三、你正在使用的是什么产品,什么版本?在什么操作系统上?
四、请提供详细的错误堆栈信息,这很重要。
/Library/Java/JavaVirtualMachines/jdk-17.jdk/Contents/Home/bin/java --add-opens java.base/java.lang.reflect=ALL-UNNAMED -XX:TieredStopAtLevel=1 -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dspring.jmx.enabled=true -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true -Dmanagement.endpoints.jmx.exposure.include=* -javaagent:/Applications/IntelliJ IDEA.app/Contents/lib/idea_rt.jar=56576:/Applications/IntelliJ IDEA.app/Contents/bin -Dfile.encoding=UTF-8 -classpath /Users/wensheng/workspace/code/SupervisionCloud/supervision-service/supervision-usual/target/classes:/Users/wensheng/workspace/tools/maven_repo/org/springblade/blade-core-boot/4.1.0/blade-core-boot-4.1.0.jar:/Users/wensheng/workspace/tools/maven_repo/org/springframework/boot/spring-boot-starter-jdbc/3.2.7/spring-boot-starter-jdbc-3.2.7.jar:/Users/wensheng/workspace/tools/maven_repo/org/springframework/boot/spring-boot-starter/3.2.7/spring-boot-starter-3.2.7.jar:/Users/wensheng/workspace/tools/maven_repo/org/springframework/boot/spring-boot/3.2.7/spring-boot-3.2.7.jar:/Users/wensheng/workspace/tools/maven_repo/org/springframework/boot/spring-boot-starter-logging/3.2.7/spring-boot-starter-logging-3.2.7.jar:/Users/wensheng/workspace/tools/maven_repo/ch/qos/logback/logback-classic/1.4.14/logback-classic-1.4.14.jar:/Users/wensheng/workspace/tools/maven_repo/ch/qos/logback/logback-core/1.4.14/logback-core-1.4.14.jar:/Users/wensheng/workspace/tools/maven_repo/org/apache/logging/log4j/log4j-to-slf4j/2.21.1/log4j-to-slf4j-2.21.1.jar:/Users/wensheng/workspace/tools/maven_repo/org/apache/logging/log4j/log4j-api/2.21.1/log4j-api-2.21.1.jar:/Users/wensheng/workspace/tools/maven_repo/org/slf4j/jul-to-slf4j/2.0.13/jul-to-slf4j-2.0.13.jar:/Users/wensheng/workspace/tools/maven_repo/jakarta/annotation/jakarta.annotation-api/2.1.1/jakarta.annotation-api-2.1.1.jar:/Users/wensheng/workspace/tools/maven_repo/org/springframework/spring-core/6.1.10/spring-core-6.1.10.jar:/Users/wensheng/workspace/tools/maven_repo/org/springframework/spring-jcl/6.1.10/spring-jcl-6.1.10.jar:/Users/wensheng/workspace/tools/maven_repo/org/yaml/snakeyaml/2.2/snakeyaml-2.2.jar:/Users/wensheng/workspace/tools/maven_repo/com/zaxxer/HikariCP/5.0.1/HikariCP-5.0.1.jar:/Users/wensheng/workspace/tools/maven_repo/org/springframework/spring-jdbc/6.1.10/spring-jdbc-6.1.10.jar:/Users/wensheng/workspace/tools/maven_repo/org/springframework/spring-beans/6.1.10/spring-beans-6.1.10.jar:/Users/wensheng/workspace/tools/maven_repo/org/springframework/spring-tx/6.1.10/spring-tx-6.1.10.jar:/Users/wensheng/workspace/tools/maven_repo/org/springframework/boot/spring-boot-starter-cache/3.2.7/spring-boot-starter-cache-3.2.7.jar:/Users/wensheng/workspace/tools/maven_repo/org/springframework/spring-context-support/6.1.10/spring-context-support-6.1.10.jar:/Users/wensheng/workspace/tools/maven_repo/org/springframework/spring-context/6.1.10/spring-context-6.1.10.jar:/Users/wensheng/workspace/tools/maven_repo/org/springframework/spring-expression/6.1.10/spring-expression-6.1.10.jar:/Users/wensheng/workspace/tools/maven_repo/org/springblade/blade-core-launch/4.1.0/blade-core-launch-4.1.0.jar:/Users/wensheng/workspace/tools/maven_repo/org/springframework/boot/spring-boot-starter-web/3.2.7/spring-boot-starter-web-3.2.7.jar:/Users/wensheng/workspace/tools/maven_repo/org/springframework/boot/spring-boot-starter-json/3.2.7/spring-boot-starter-json-3.2.7.jar:/Users/wensheng/workspace/tools/maven_repo/com/fasterxml/jackson/datatype/jackson-datatype-jdk8/2.15.4/jackson-datatype-jdk8-2.15.4.jar:/Users/wensheng/workspace/tools/maven_repo/com/fasterxml/jackson/module/jackson-module-parameter-names/2.15.4/jackson-module-parameter-names-2.15.4.jar:/Users/wensheng/workspace/tools/maven_repo/org/springframework/spring-webmvc/6.1.10/spring-webmvc-6.1.10.jar:/Users/wensheng/workspace/tools/maven_repo/org/springframework/boot/spring-boot-starter-undertow/3.2.7/spring-boot-starter-undertow-3.2.7.jar:/Users/wensheng/workspace/tools/maven_repo/io/undertow/undertow-core/2.3.13.Final/undertow-core-2.3.13.Final.jar:/Users/wensheng/workspace/tools/maven_repo/org/jboss/xnio/xnio-api/3.8.8.Final/xnio-api-3.8.8.Final.jar:/Users/wensheng/workspace/tools/maven_repo/org/wildfly/common/wildfly-common/1.5.4.Final/wildfly-common-1.5.4.Final.jar:/Users/wensheng/workspace/tools/maven_repo/org/wildfly/client/wildfly-client-config/1.0.1.Final/wildfly-client-config-1.0.1.Final.jar:/Users/wensheng/workspace/tools/maven_repo/org/jboss/xnio/xnio-nio/3.8.8.Final/xnio-nio-3.8.8.Final.jar:/Users/wensheng/workspace/tools/maven_repo/org/jboss/threads/jboss-threads/3.5.0.Final/jboss-threads-3.5.0.Final.jar:/Users/wensheng/workspace/tools/maven_repo/io/undertow/undertow-servlet/2.3.13.Final/undertow-servlet-2.3.13.Final.jar:/Users/wensheng/workspace/tools/maven_repo/io/undertow/undertow-websockets-jsr/2.3.13.Final/undertow-websockets-jsr-2.3.13.Final.jar:/Users/wensheng/workspace/tools/maven_repo/jakarta/websocket/jakarta.websocket-api/2.1.1/jakarta.websocket-api-2.1.1.jar:/Users/wensheng/workspace/tools/maven_repo/jakarta/websocket/jakarta.websocket-client-api/2.1.1/jakarta.websocket-client-api-2.1.1.jar:/Users/wensheng/workspace/tools/maven_repo/org/apache/tomcat/embed/tomcat-embed-el/10.1.25/tomcat-embed-el-10.1.25.jar:/Users/wensheng/workspace/tools/maven_repo/jakarta/servlet/jakarta.servlet-api/6.0.0/jakarta.servlet-api-6.0.0.jar:/Users/wensheng/workspace/tools/maven_repo/javax/xml/bind/jaxb-api/2.3.1/jaxb-api-2.3.1.jar:/Users/wensheng/workspace/tools/maven_repo/javax/activation/javax.activation-api/1.2.0/javax.activation-api-1.2.0.jar:/Users/wensheng/workspace/tools/maven_repo/com/sun/xml/bind/jaxb-core/4.0.5/jaxb-core-4.0.5.jar:/Users/wensheng/workspace/tools/maven_repo/jakarta/xml/bind/jakarta.xml.bind-api/4.0.2/jakarta.xml.bind-api-4.0.2.jar:/Users/wensheng/workspace/tools/maven_repo/jakarta/activation/jakarta.activation-api/2.1.3/jakarta.activation-api-2.1.3.jar:/Users/wensheng/workspace/tools/maven_repo/org/eclipse/angus/angus-activation/2.0.2/angus-activation-2.0.2.jar:/Users/wensheng/workspace/tools/maven_repo/com/sun/xml/bind/jaxb-impl/4.0.5/jaxb-impl-4.0.5.jar:/Users/wensheng/workspace/tools/maven_repo/javax/activation/activation/1.1.1/activation-1.1.1.jar:/Users/wensheng/workspace/tools/maven_repo/org/springblade/blade-core-cloud/4.1.0/blade-core-cloud-4.1.0.jar:/Users/wensheng/workspace/tools/maven_repo/io/github/openfeign/feign-okhttp/13.2.1/feign-okhttp-13.2.1.jar:/Users/wensheng/workspace/tools/maven_repo/org/springframework/cloud/spring-cloud-starter-loadbalancer/4.1.3/spring-cloud-starter-loadbalancer-4.1.3.jar:/Users/wensheng/workspace/tools/maven_repo/org/springframework/cloud/spring-cloud-loadbalancer/4.1.3/spring-cloud-loadbalancer-4.1.3.jar:/Users/wensheng/workspace/tools/maven_repo/io/projectreactor/addons/reactor-extra/3.5.1/reactor-extra-3.5.1.jar:/Users/wensheng/workspace/tools/maven_repo/com/stoyanr/evictor/1.0.0/evictor-1.0.0.jar:/Users/wensheng/workspace/tools/maven_repo/org/springframework/cloud/spring-cloud-starter-bootstrap/4.1.3/spring-cloud-starter-bootstrap-4.1.3.jar:/Users/wensheng/workspace/tools/maven_repo/de/codecentric/spring-boot-admin-starter-client/3.2.3/spring-boot-admin-starter-client-3.2.3.jar:/Users/wensheng/workspace/tools/maven_repo/de/codecentric/spring-boot-admin-client/3.2.3/spring-boot-admin-client-3.2.3.jar:/Users/wensheng/workspace/tools/maven_repo/com/alibaba/cloud/spring-cloud-starter-alibaba-nacos-discovery/2023.0.1.0/spring-cloud-starter-alibaba-nacos-discovery-2023.0.1.0.jar:/Users/wensheng/workspace/tools/maven_repo/com/alibaba/cloud/spring-cloud-alibaba-commons/2023.0.1.0/spring-cloud-alibaba-commons-2023.0.1.0.jar:/Users/wensheng/workspace/tools/maven_repo/com/alibaba/spring/spring-context-support/1.0.11/spring-context-support-1.0.11.jar:/Users/wensheng/workspace/tools/maven_repo/org/springframework/cloud/spring-cloud-context/4.1.3/spring-cloud-context-4.1.3.jar:/Users/wensheng/workspace/tools/maven_repo/com/alibaba/cloud/spring-cloud-starter-alibaba-nacos-config/2023.0.1.0/spring-cloud-starter-alibaba-nacos-config-2023.0.1.0.jar:/Users/wensheng/workspace/tools/maven_repo/com/alibaba/nacos/nacos-client/2.3.2/nacos-client-2.3.2.jar:/Users/wensheng/workspace/tools/maven_repo/com/alibaba/nacos/nacos-auth-plugin/2.3.2/nacos-auth-plugin-2.3.2.jar:/Users/wensheng/workspace/tools/maven_repo/com/alibaba/nacos/nacos-encryption-plugin/2.3.2/nacos-encryption-plugin-2.3.2.jar:/Users/wensheng/workspace/tools/maven_repo/commons-codec/commons-codec/1.16.1/commons-codec-1.16.1.jar:/Users/wensheng/workspace/tools/maven_repo/org/apache/httpcomponents/httpasyncclient/4.1.5/httpasyncclient-4.1.5.jar:/Users/wensheng/workspace/tools/maven_repo/org/apache/httpcomponents/httpcore-nio/4.4.16/httpcore-nio-4.4.16.jar:/Users/wensheng/workspace/tools/maven_repo/org/apache/httpcomponents/httpclient/4.5.14/httpclient-4.5.14.jar:/Users/wensheng/workspace/tools/maven_repo/org/apache/httpcomponents/httpcore/4.4.16/httpcore-4.4.16.jar:/Users/wensheng/workspace/tools/maven_repo/io/prometheus/simpleclient/0.16.0/simpleclient-0.16.0.jar:/Users/wensheng/workspace/tools/maven_repo/io/prometheus/simpleclient_tracer_otel/0.16.0/simpleclient_tracer_otel-0.16.0.jar:/Users/wensheng/workspace/tools/maven_repo/io/prometheus/simpleclient_tracer_common/0.16.0/simpleclient_tracer_common-0.16.0.jar:/Users/wensheng/workspace/tools/maven_repo/io/prometheus/simpleclient_tracer_otel_agent/0.16.0/simpleclient_tracer_otel_agent-0.16.0.jar:/Users/wensheng/workspace/tools/maven_repo/io/micrometer/micrometer-core/1.12.7/micrometer-core-1.12.7.jar:/Users/wensheng/workspace/tools/maven_repo/org/hdrhistogram/HdrHistogram/2.1.12/HdrHistogram-2.1.12.jar:/Users/wensheng/workspace/tools/maven_repo/org/latencyutils/LatencyUtils/2.0.3/LatencyUtils-2.0.3.jar:/Users/wensheng/workspace/tools/maven_repo/com/alibaba/cloud/spring-cloud-starter-alibaba-sentinel/2023.0.1.0/spring-cloud-starter-alibaba-sentinel-2023.0.1.0.jar:/Users/wensheng/workspace/tools/maven_repo/com/alibaba/csp/sentinel-transport-simple-http/1.8.6/sentinel-transport-simple-http-1.8.6.jar:/Users/wensheng/workspace/tools/maven_repo/com/alibaba/csp/sentinel-transport-common/1.8.6/sentinel-transport-common-1.8.6.jar:/Users/wensheng/workspace/tools/maven_repo/com/alibaba/csp/sentinel-datasource-extension/1.8.6/sentinel-datasource-extension-1.8.6.jar:/Users/wensheng/workspace/tools/maven_repo/com/alibaba/csp/sentinel-annotation-aspectj/1.8.6/sentinel-annotation-aspectj-1.8.6.jar:/Users/wensheng/workspace/tools/maven_repo/com/alibaba/csp/sentinel-core/1.8.6/sentinel-core-1.8.6.jar:/Users/wensheng/workspace/tools/maven_repo/com/alibaba/cloud/spring-cloud-circuitbreaker-sentinel/2023.0.1.0/spring-cloud-circuitbreaker-sentinel-2023.0.1.0.jar:/Users/wensheng/workspace/tools/maven_repo/com/alibaba/csp/sentinel-reactor-adapter/1.8.6/sentinel-reactor-adapter-1.8.6.jar:/Users/wensheng/workspace/tools/maven_repo/com/alibaba/csp/sentinel-spring-webflux-adapter/1.8.6/sentinel-spring-webflux-adapter-1.8.6.jar:/Users/wensheng/workspace/tools/maven_repo/com/alibaba/csp/sentinel-spring-webmvc-6x-adapter/1.8.6/sentinel-spring-webmvc-6x-adapter-1.8.6.jar:/Users/wensheng/workspace/tools/maven_repo/com/alibaba/csp/sentinel-parameter-flow-control/1.8.6/sentinel-parameter-flow-control-1.8.6.jar:/Users/wensheng/workspace/tools/maven_repo/com/googlecode/concurrentlinkedhashmap/concurrentlinkedhashmap-lru/1.4.2/concurrentlinkedhashmap-lru-1.4.2.jar:/Users/wensheng/workspace/tools/maven_repo/com/alibaba/csp/sentinel-cluster-server-default/1.8.6/sentinel-cluster-server-default-1.8.6.jar:/Users/wensheng/workspace/tools/maven_repo/com/alibaba/csp/sentinel-cluster-common-default/1.8.6/sentinel-cluster-common-default-1.8.6.jar:/Users/wensheng/workspace/tools/maven_repo/com/alibaba/csp/sentinel-cluster-client-default/1.8.6/sentinel-cluster-client-default-1.8.6.jar:/Users/wensheng/workspace/tools/maven_repo/com/alibaba/cloud/spring-cloud-alibaba-sentinel-datasource/2023.0.1.0/spring-cloud-alibaba-sentinel-datasource-2023.0.1.0.jar:/Users/wensheng/workspace/tools/maven_repo/com/alibaba/fastjson/2.0.47/fastjson-2.0.47.jar:/Users/wensheng/workspace/tools/maven_repo/com/alibaba/fastjson2/fastjson2-extension/2.0.47/fastjson2-extension-2.0.47.jar:/Users/wensheng/workspace/tools/maven_repo/com/alibaba/fastjson2/fastjson2/2.0.47/fastjson2-2.0.47.jar:/Users/wensheng/workspace/tools/maven_repo/org/springblade/blade-core-secure/4.1.0/blade-core-secure-4.1.0.jar:/Users/wensheng/workspace/tools/maven_repo/io/jsonwebtoken/jjwt-impl/0.11.2/jjwt-impl-0.11.2.jar:/Users/wensheng/workspace/tools/maven_repo/io/jsonwebtoken/jjwt-api/0.11.2/jjwt-api-0.11.2.jar:/Users/wensheng/workspace/tools/maven_repo/io/jsonwebtoken/jjwt-jackson/0.11.2/jjwt-jackson-0.11.2.jar:/Users/wensheng/workspace/tools/maven_repo/org/springblade/blade-core-log/4.1.0/blade-core-log-4.1.0.jar:/Users/wensheng/workspace/tools/maven_repo/com/baomidou/mybatis-plus/3.5.7/mybatis-plus-3.5.7.jar:/Users/wensheng/workspace/tools/maven_repo/com/baomidou/mybatis-plus-core/3.5.7/mybatis-plus-core-3.5.7.jar:/Users/wensheng/workspace/tools/maven_repo/com/baomidou/mybatis-plus-annotation/3.5.7/mybatis-plus-annotation-3.5.7.jar:/Users/wensheng/workspace/tools/maven_repo/com/baomidou/mybatis-plus-extension/3.5.7/mybatis-plus-extension-3.5.7.jar:/Users/wensheng/workspace/tools/maven_repo/com/github/jsqlparser/jsqlparser/4.9/jsqlparser-4.9.jar:/Users/wensheng/workspace/tools/maven_repo/org/springblade/blade-core-swagger/4.1.0/blade-core-swagger-4.1.0.jar:/Users/wensheng/workspace/tools/maven_repo/com/github/xiaoymin/knife4j-openapi3-jakarta-spring-boot-starter/4.5.0/knife4j-openapi3-jakarta-spring-boot-starter-4.5.0.jar:/Users/wensheng/workspace/tools/maven_repo/com/github/xiaoymin/knife4j-core/4.5.0/knife4j-core-4.5.0.jar:/Users/wensheng/workspace/tools/maven_repo/com/github/xiaoymin/knife4j-openapi3-ui/4.5.0/knife4j-openapi3-ui-4.5.0.jar:/Users/wensheng/workspace/tools/maven_repo/org/springdoc/springdoc-openapi-starter-webmvc-ui/2.3.0/springdoc-openapi-starter-webmvc-ui-2.3.0.jar:/Users/wensheng/workspace/tools/maven_repo/org/springdoc/springdoc-openapi-starter-webmvc-api/2.3.0/springdoc-openapi-starter-webmvc-api-2.3.0.jar:/Users/wensheng/workspace/tools/maven_repo/org/springdoc/springdoc-openapi-starter-common/2.3.0/springdoc-openapi-starter-common-2.3.0.jar:/Users/wensheng/workspace/tools/maven_repo/io/swagger/core/v3/swagger-core-jakarta/2.2.19/swagger-core-jakarta-2.2.19.jar:/Users/wensheng/workspace/tools/maven_repo/org/apache/commons/commons-lang3/3.13.0/commons-lang3-3.13.0.jar:/Users/wensheng/workspace/tools/maven_repo/io/swagger/core/v3/swagger-annotations-jakarta/2.2.19/swagger-annotations-jakarta-2.2.19.jar:/Users/wensheng/workspace/tools/maven_repo/io/swagger/core/v3/swagger-models-jakarta/2.2.19/swagger-models-jakarta-2.2.19.jar:/Users/wensheng/workspace/tools/maven_repo/com/fasterxml/jackson/dataformat/jackson-dataformat-yaml/2.15.4/jackson-dataformat-yaml-2.15.4.jar:/Users/wensheng/workspace/tools/maven_repo/org/webjars/swagger-ui/5.10.3/swagger-ui-5.10.3.jar:/Users/wensheng/workspace/tools/maven_repo/org/springblade/blade-core-mybatis/4.1.0/blade-core-mybatis-4.1.0.jar:/Users/wensheng/workspace/tools/maven_repo/org/mybatis/mybatis/3.5.16/mybatis-3.5.16.jar:/Users/wensheng/workspace/tools/maven_repo/org/mybatis/mybatis-spring/3.0.3/mybatis-spring-3.0.3.jar:/Users/wensheng/workspace/tools/maven_repo/com/baomidou/mybatis-plus-spring-boot3-starter/3.5.7/mybatis-plus-spring-boot3-starter-3.5.7.jar:/Users/wensheng/workspace/tools/maven_repo/com/baomidou/mybatis-plus-spring-boot-autoconfigure/3.5.7/mybatis-plus-spring-boot-autoconfigure-3.5.7.jar:/Users/wensheng/workspace/tools/maven_repo/org/springframework/boot/spring-boot-autoconfigure/3.2.7/spring-boot-autoconfigure-3.2.7.jar:/Users/wensheng/workspace/tools/maven_repo/org/mybatis/mybatis-typehandlers-jsr310/1.0.2/mybatis-typehandlers-jsr310-1.0.2.jar:/Users/wensheng/workspace/tools/maven_repo/net/sf/ehcache/ehcache/2.10.5/ehcache-2.10.5.jar:/Users/wensheng/workspace/tools/maven_repo/org/slf4j/slf4j-api/2.0.13/slf4j-api-2.0.13.jar:/Users/wensheng/workspace/tools/maven_repo/com/alibaba/druid-spring-boot-3-starter/1.2.22/druid-spring-boot-3-starter-1.2.22.jar:/Users/wensheng/workspace/tools/maven_repo/com/alibaba/druid/1.2.22/druid-1.2.22.jar:/Users/wensheng/workspace/tools/maven_repo/com/mysql/mysql-connector-j/8.3.0/mysql-connector-j-8.3.0.jar:/Users/wensheng/workspace/tools/maven_repo/org/springframework/boot/spring-boot-starter-aop/3.2.7/spring-boot-starter-aop-3.2.7.jar:/Users/wensheng/workspace/tools/maven_repo/org/springframework/spring-aop/6.1.10/spring-aop-6.1.10.jar:/Users/wensheng/workspace/tools/maven_repo/org/aspectj/aspectjweaver/1.9.22/aspectjweaver-1.9.22.jar:/Users/wensheng/workspace/tools/maven_repo/org/springframework/boot/spring-boot-starter-actuator/3.2.7/spring-boot-starter-actuator-3.2.7.jar:/Users/wensheng/workspace/tools/maven_repo/org/springframework/boot/spring-boot-actuator-autoconfigure/3.2.7/spring-boot-actuator-autoconfigure-3.2.7.jar:/Users/wensheng/workspace/tools/maven_repo/org/springframework/boot/spring-boot-actuator/3.2.7/spring-boot-actuator-3.2.7.jar:/Users/wensheng/workspace/tools/maven_repo/io/micrometer/micrometer-observation/1.12.7/micrometer-observation-1.12.7.jar:/Users/wensheng/workspace/tools/maven_repo/io/micrometer/micrometer-commons/1.12.7/micrometer-commons-1.12.7.jar:/Users/wensheng/workspace/tools/maven_repo/io/micrometer/micrometer-jakarta9/1.12.7/micrometer-jakarta9-1.12.7.jar:/Users/wensheng/workspace/tools/maven_repo/org/springframework/retry/spring-retry/2.0.6/spring-retry-2.0.6.jar:/Users/wensheng/workspace/tools/maven_repo/org/hibernate/validator/hibernate-validator/8.0.1.Final/hibernate-validator-8.0.1.Final.jar:/Users/wensheng/workspace/tools/maven_repo/jakarta/validation/jakarta.validation-api/3.0.2/jakarta.validation-api-3.0.2.jar:/Users/wensheng/workspace/tools/maven_repo/org/jboss/logging/jboss-logging/3.5.3.Final/jboss-logging-3.5.3.Final.jar:/Users/wensheng/workspace/tools/maven_repo/com/fasterxml/classmate/1.6.0/classmate-1.6.0.jar:/Users/wensheng/workspace/code/SupervisionCloud/supervision-service-api/supervision-usual-api/target/classes:/Users/wensheng/workspace/tools/maven_repo/org/springframework/cloud/spring-cloud-starter-openfeign/4.1.2/spring-cloud-starter-openfeign-4.1.2.jar:/Users/wensheng/workspace/tools/maven_repo/org/springframework/cloud/spring-cloud-starter/4.1.3/spring-cloud-starter-4.1.3.jar:/Users/wensheng/workspace/tools/maven_repo/org/springframework/security/spring-security-rsa/1.1.3/spring-security-rsa-1.1.3.jar:/Users/wensheng/workspace/tools/maven_repo/org/springframework/cloud/spring-cloud-openfeign-core/4.1.2/spring-cloud-openfeign-core-4.1.2.jar:/Users/wensheng/workspace/tools/maven_repo/io/github/openfeign/form/feign-form-spring/3.8.0/feign-form-spring-3.8.0.jar:/Users/wensheng/workspace/tools/maven_repo/io/github/openfeign/form/feign-form/3.8.0/feign-form-3.8.0.jar:/Users/wensheng/workspace/tools/maven_repo/commons-fileupload/commons-fileupload/1.5/commons-fileupload-1.5.jar:/Users/wensheng/workspace/tools/maven_repo/commons-io/commons-io/2.11.0/commons-io-2.11.0.jar:/Users/wensheng/workspace/tools/maven_repo/org/springframework/spring-web/6.1.10/spring-web-6.1.10.jar:/Users/wensheng/workspace/tools/maven_repo/org/springframework/cloud/spring-cloud-commons/4.1.3/spring-cloud-commons-4.1.3.jar:/Users/wensheng/workspace/tools/maven_repo/org/springframework/security/spring-security-crypto/6.2.5/spring-security-crypto-6.2.5.jar:/Users/wensheng/workspace/tools/maven_repo/io/github/openfeign/feign-core/13.2.1/feign-core-13.2.1.jar:/Users/wensheng/workspace/tools/maven_repo/io/github/openfeign/feign-slf4j/13.2.1/feign-slf4j-13.2.1.jar:/Users/wensheng/workspace/tools/maven_repo/org/springblade/blade-core-tool/4.1.0/blade-core-tool-4.1.0.jar:/Users/wensheng/workspace/tools/maven_repo/com/fasterxml/jackson/datatype/jackson-datatype-jsr310/2.15.4/jackson-datatype-jsr310-2.15.4.jar:/Users/wensheng/workspace/tools/maven_repo/com/fasterxml/jackson/core/jackson-annotations/2.15.4/jackson-annotations-2.15.4.jar:/Users/wensheng/workspace/tools/maven_repo/com/fasterxml/jackson/core/jackson-core/2.15.4/jackson-core-2.15.4.jar:/Users/wensheng/workspace/tools/maven_repo/com/fasterxml/jackson/core/jackson-databind/2.15.4/jackson-databind-2.15.4.jar:/Users/wensheng/workspace/tools/maven_repo/com/google/guava/guava/33.1.0-jre/guava-33.1.0-jre.jar:/Users/wensheng/workspace/tools/maven_repo/com/google/guava/failureaccess/1.0.2/failureaccess-1.0.2.jar:/Users/wensheng/workspace/tools/maven_repo/com/google/guava/listenablefuture/9999.0-empty-to-avoid-conflict-with-guava/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar:/Users/wensheng/workspace/tools/maven_repo/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.jar:/Users/wensheng/workspace/tools/maven_repo/org/checkerframework/checker-qual/3.42.0/checker-qual-3.42.0.jar:/Users/wensheng/workspace/tools/maven_repo/com/google/errorprone/error_prone_annotations/2.26.1/error_prone_annotations-2.26.1.jar:/Users/wensheng/workspace/tools/maven_repo/com/google/j2objc/j2objc-annotations/3.0.0/j2objc-annotations-3.0.0.jar:/Users/wensheng/workspace/tools/maven_repo/com/squareup/okhttp3/okhttp/4.12.0/okhttp-4.12.0.jar:/Users/wensheng/workspace/tools/maven_repo/com/squareup/okio/okio/3.6.0/okio-3.6.0.jar:/Users/wensheng/workspace/tools/maven_repo/com/squareup/okio/okio-jvm/3.6.0/okio-jvm-3.6.0.jar:/Users/wensheng/workspace/tools/maven_repo/org/jetbrains/kotlin/kotlin-stdlib-common/1.9.24/kotlin-stdlib-common-1.9.24.jar:/Users/wensheng/workspace/tools/maven_repo/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.9.24/kotlin-stdlib-jdk8-1.9.24.jar:/Users/wensheng/workspace/tools/maven_repo/org/jetbrains/kotlin/kotlin-stdlib/1.9.24/kotlin-stdlib-1.9.24.jar:/Users/wensheng/workspace/tools/maven_repo/org/jetbrains/annotations/13.0/annotations-13.0.jar:/Users/wensheng/workspace/tools/maven_repo/org/jetbrains/kotlin/kotlin-stdlib-jdk7/1.9.24/kotlin-stdlib-jdk7-1.9.24.jar:/Users/wensheng/workspace/tools/maven_repo/io/swagger/core/v3/swagger-annotations/2.2.19/swagger-annotations-2.2.19.jar:/Users/wensheng/workspace/tools/maven_repo/io/protostuff/protostuff-core/1.6.0/protostuff-core-1.6.0.jar:/Users/wensheng/workspace/tools/maven_repo/io/protostuff/protostuff-api/1.6.0/protostuff-api-1.6.0.jar:/Users/wensheng/workspace/tools/maven_repo/io/protostuff/protostuff-runtime/1.6.0/protostuff-runtime-1.6.0.jar:/Users/wensheng/workspace/tools/maven_repo/io/protostuff/protostuff-collectionschema/1.6.0/protostuff-collectionschema-1.6.0.jar:/Users/wensheng/workspace/tools/maven_repo/org/springframework/boot/spring-boot-starter-data-redis/3.2.7/spring-boot-starter-data-redis-3.2.7.jar:/Users/wensheng/workspace/tools/maven_repo/io/lettuce/lettuce-core/6.3.2.RELEASE/lettuce-core-6.3.2.RELEASE.jar:/Users/wensheng/workspace/tools/maven_repo/io/netty/netty-common/4.1.111.Final/netty-common-4.1.111.Final.jar:/Users/wensheng/workspace/tools/maven_repo/io/netty/netty-handler/4.1.111.Final/netty-handler-4.1.111.Final.jar:/Users/wensheng/workspace/tools/maven_repo/io/netty/netty-resolver/4.1.111.Final/netty-resolver-4.1.111.Final.jar:/Users/wensheng/workspace/tools/maven_repo/io/netty/netty-buffer/4.1.111.Final/netty-buffer-4.1.111.Final.jar:/Users/wensheng/workspace/tools/maven_repo/io/netty/netty-transport-native-unix-common/4.1.111.Final/netty-transport-native-unix-common-4.1.111.Final.jar:/Users/wensheng/workspace/tools/maven_repo/io/netty/netty-codec/4.1.111.Final/netty-codec-4.1.111.Final.jar:/Users/wensheng/workspace/tools/maven_repo/io/netty/netty-transport/4.1.111.Final/netty-transport-4.1.111.Final.jar:/Users/wensheng/workspace/tools/maven_repo/io/projectreactor/reactor-core/3.6.7/reactor-core-3.6.7.jar:/Users/wensheng/workspace/tools/maven_repo/org/reactivestreams/reactive-streams/1.0.4/reactive-streams-1.0.4.jar:/Users/wensheng/workspace/tools/maven_repo/org/springframework/data/spring-data-redis/3.2.7/spring-data-redis-3.2.7.jar:/Users/wensheng/workspace/tools/maven_repo/org/springframework/data/spring-data-keyvalue/3.2.7/spring-data-keyvalue-3.2.7.jar:/Users/wensheng/workspace/tools/maven_repo/org/springframework/data/spring-data-commons/3.2.7/spring-data-commons-3.2.7.jar:/Users/wensheng/workspace/tools/maven_repo/org/springframework/spring-oxm/6.1.10/spring-oxm-6.1.10.jar:/Users/wensheng/workspace/tools/maven_repo/org/bouncycastle/bcprov-jdk18on/1.78.1/bcprov-jdk18on-1.78.1.jar:/Users/wensheng/workspace/code/SupervisionCloud/supervision-common/target/classes:/Users/wensheng/workspace/tools/maven_repo/org/springblade/blade-core-loadbalancer/4.1.0/blade-core-loadbalancer-4.1.0.jar:/Users/wensheng/workspace/code/SupervisionCloud/supervision-service-api/supervision-scope-api/target/classes:/Users/wensheng/workspace/tools/maven_repo/org/springblade/blade-core-datascope/4.1.0/blade-core-datascope-4.1.0.jar:/Users/wensheng/workspace/tools/maven_repo/org/projectlombok/lombok/1.18.32/lombok-1.18.32.jar org.caisheng.usual.UsualApplication
----启动中,读取到的环境变量:[dev],jar地址:[/Users/wensheng/workspace/code/SupervisionCloud/supervision-service/supervision-usual/target/classes/]----
2024-07-28 18:43:01.986 INFO 33693 --- [kground-preinit] o.h.validator.internal.util.Version : HV000001: Hibernate Validator 8.0.1.Final
_____ _ ______ _ _
/ ___| (_) | ___ \| | | |
\ `--. _ __ _ __ _ _ __ __ _ | |_/ /| | __ _ __| | ___
`--. \| '_ \ | '__|| || '_ \ / _` | | ___ \| | / _` | / _` | / _ \
/\__/ /| |_) || | | || | | || (_| | | |_/ /| || (_| || (_| || __/
\____/ | .__/ |_| |_||_| |_| \__, | \____/ |_| \__,_| \__,_| \___|
| | __/ |
|_| |___/
:: SpringBlade :: supervision-usual:dev :: Running SpringBoot 3.2.7 ::
2024-07-28 18:43:02.777 WARN 33693 --- [ main] c.a.c.n.c.NacosPropertySourceBuilder : Ignore the empty nacos configuration and get it based on dataId[supervision.yaml] & group[DEFAULT_GROUP]
2024-07-28 18:43:02.780 WARN 33693 --- [ main] c.a.c.n.c.NacosPropertySourceBuilder : Ignore the empty nacos configuration and get it based on dataId[supervision-dev.yaml] & group[DEFAULT_GROUP]
2024-07-28 18:43:02.782 WARN 33693 --- [ main] c.a.c.n.c.NacosPropertySourceBuilder : Ignore the empty nacos configuration and get it based on dataId[supervision-usual-dev.yaml] & group[DEFAULT_GROUP]
2024-07-28 18:43:02.784 WARN 33693 --- [ main] c.a.c.n.c.NacosPropertySourceBuilder : Ignore the empty nacos configuration and get it based on dataId[supervision] & group[DEV_GROUP]
2024-07-28 18:43:02.800 INFO 33693 --- [ main] b.c.PropertySourceBootstrapConfiguration : Located property source: [BootstrapPropertySource {name='bootstrapProperties-supervision-dev.yaml,DEV_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-supervision.yaml,DEV_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-supervision,DEV_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-supervision-usual-dev.yaml,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-supervision-dev.yaml,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-supervision.yaml,DEFAULT_GROUP'}]
2024-07-28 18:43:02.807 INFO 33693 --- [ main] org.caisheng.usual.UsualApplication : The following 1 profile is active: "dev"
2024-07-28 18:43:03.354 INFO 33693 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode
2024-07-28 18:43:03.355 INFO 33693 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode.
2024-07-28 18:43:03.365 INFO 33693 --- [ main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 4 ms. Found 0 Redis repository interfaces.
2024-07-28 18:43:03.449 WARN 33693 --- [ main] o.m.s.mapper.ClassPathMapperScanner : No MyBatis mapper was found in '[org.caisheng.usual]' package. Please check your configuration.
2024-07-28 18:43:03.494 INFO 33693 --- [ main] o.s.cloud.context.scope.GenericScope : BeanFactory id=625b4728-7a36-3926-8893-ad6ecc3c8d5e
2024-07-28 18:43:03.496 INFO 33693 --- [ main] s.c.l.p.BladePropertySourcePostProcessor : BladePropertySourcePostProcessor init.
2024-07-28 18:43:03.521 INFO 33693 --- [ main] s.c.l.p.BladePropertySourcePostProcessor : BladePropertySourcePostProcessor process @BladePropertySource bean.
2024-07-28 18:43:03.735 WARN 33693 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.client.loadbalancer.LoadBalancerAutoConfiguration$DeferringLoadBalancerInterceptorConfig' of type [org.springframework.cloud.client.loadbalancer.LoadBalancerAutoConfiguration$DeferringLoadBalancerInterceptorConfig] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). The currently created BeanPostProcessor [lbRestClientPostProcessor] is declared through a non-static factory method on that class; consider declaring it as static instead.
2024-07-28 18:43:03.738 WARN 33693 --- [ main] trationDelegate$BeanPostProcessorChecker : Bean 'deferringLoadBalancerInterceptor' of type [org.springframework.cloud.client.loadbalancer.DeferringLoadBalancerInterceptor] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying). Is this bean getting eagerly injected into a currently created BeanPostProcessor [lbRestClientPostProcessor]? Check the corresponding BeanPostProcessor declaration and its dependencies.
2024-07-28 18:43:03.897 WARN 33693 --- [ main] io.undertow.websockets.jsr : UT026010: Buffer pool was not set on WebSocketDeploymentInfo, the default pool will be used
2024-07-28 18:43:03.907 INFO 33693 --- [ main] io.undertow.servlet : Initializing Spring embedded WebApplicationContext
2024-07-28 18:43:03.907 INFO 33693 --- [ main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 1091 ms
2024-07-28 18:43:04.142 INFO 33693 --- [ main] c.a.d.s.b.a.DruidDataSourceAutoConfigure : Init DruidDataSource
2024-07-28 18:43:04.196 ERROR 33693 --- [ main] com.alibaba.druid.pool.DruidDataSource : {dataSource-1} init error
java.lang.NullPointerException: Cannot invoke "java.sql.Connection.createStatement()" because "rawConn" is null
at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1683)
at com.alibaba.druid.pool.DruidAbstractDataSource.createPhysicalConnection(DruidAbstractDataSource.java:1803)
at com.alibaba.druid.pool.DruidDataSource.init(DruidDataSource.java:924)
at com.alibaba.druid.spring.boot3.autoconfigure.DruidDataSourceWrapper.afterPropertiesSet(DruidDataSourceWrapper.java:51)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1835)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1784)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:600)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:522)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:337)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:335)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200)
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:254)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1443)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1353)
at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:904)
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:782)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:542)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1337)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1167)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:562)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:522)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:337)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:335)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:313)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200)
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:254)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1443)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1353)
at org.springframework.beans.factory.support.ConstructorResolver.resolveAutowiredArgument(ConstructorResolver.java:904)
at org.springframework.beans.factory.support.ConstructorResolver.createArgumentArray(ConstructorResolver.java:782)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:237)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1357)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1194)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:562)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:522)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:337)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:335)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:409)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1337)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1167)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:562)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:522)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:337)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:335)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200)
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:254)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.addCandidateEntry(DefaultListableBeanFactory.java:1689)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1653)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveMultipleBeans(DefaultListableBeanFactory.java:1492)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1392)
at org.springframework.beans.factory.support.DefaultListableBeanFactory$DependencyObjectProvider.getIfAvailable(DefaultListableBeanFactory.java:2112)
at org.springblade.core.mp.config.MybatisPlusConfiguration.mybatisPlusInterceptor(MybatisPlusConfiguration.java:86)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:568)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:140)
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:644)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:636)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1337)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1167)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:562)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:522)
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:337)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:335)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:200)
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:254)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.addCandidateEntry(DefaultListableBeanFactory.java:1689)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.findAutowireCandidates(DefaultListableBeanFactory.java:1653)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveMultipleBeans(DefaultListableBeanFactory.java:1492)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1392)
at org.springframework.beans.factory.support.DefaultListableBeanFactory$DependencyObjectProvider.getIfAvailable(DefaultListableBeanFactory.java:2112)
at com.baomidou.mybatisplus.autoconfigure.MybatisPlusAutoConfiguration.
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.base/java.lang.reflect.Constructor.newInstanceWithCaller(Constructor.java:499)
at java.base/java.lang.reflect.Constructor.newInstance(Constructor.java:480)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:208)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:111)
单独这样配置试试,还有就是你需要再检查nacos的命名、后缀、格式是否正确
public class DemoLauncherServiceImpl implements LauncherService { @Override public void launcher(SpringApplicationBuilder builder, String appName, String profile, boolean isLocalDev) { Properties props = System.getProperties(); // 指定注册配置信息 PropsUtil.setProperty(props, "spring.cloud.nacos.config.extension-configs[0].data-id", "supervision-usual-dev.yaml"); PropsUtil.setProperty(props, "spring.cloud.nacos.config.extension-configs[0].group", NacosConstant.NACOS_CONFIG_GROUP); PropsUtil.setProperty(props, "spring.cloud.nacos.config.extension-configs[0].refresh", NacosConstant.NACOS_CONFIG_REFRESH); } @Override public int getOrder() { return 20; } }
扫一扫访问 Blade技术社区 移动端