SpringBlade 怎么添加新的环境配置

Blade 未结 2 504
白啊白
白啊白 剑童 2023-06-25 14:48

一、该问题的重现步骤是什么?

1. 想添加自定义的 yml    除了 dev prod test  三个环境之外,添加额外的环境,比如后缀名为 local、local_dev等

2. 

3.


image.png


二、你期待的结果是什么?实际看到的又是什么?

idea开发环境中,指定了active profiles 变量,就读取了后缀 对应的配置文件。

image.png


三、你正在使用的是什么产品,什么版本?在什么操作系统上?

SpringBlade3.6.0  windows10


四、请提供详细的错误堆栈信息,这很重要。

D:\Java_Soft\java\jdk8\jdk1.8.0_191\bin\java.exe -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:7252,suspend=y,server=n -XX:TieredStopAtLevel=1 -noverify -Dspring.profiles.active=local -Dspring.output.ansi.enabled=always -Dcom.sun.management.jmxremote -Dspring.jmx.enabled=true -Dspring.liveBeansView.mbeanDomain -Dspring.application.admin.enabled=true -javaagent:D:\Java_Soft\ideaIU-2020.2.2.win\plugins\java\lib\rt\debugger-agent.jar=file:/C:/Users/w/AppData/Local/Temp/capture.props -Dfile.encoding=UTF-8 -classpath D:\Java_Soft\java\jdk8\jdk1.8.0_191\jre\lib\charsets.jar;D:\Java_Soft\java\jdk8\jdk1.8.0_191\jre\lib\deploy.jar;D:\Java_Soft\java\jdk8\jdk1.8.0_191\jre\lib\ext\access-bridge-64.jar;D:\Java_Soft\java\jdk8\jdk1.8.0_191\jre\lib\ext\cldrdata.jar;D:\Java_Soft\java\jdk8\jdk1.8.0_191\jre\lib\ext\dnsns.jar;D:\Java_Soft\java\jdk8\jdk1.8.0_191\jre\lib\ext\jaccess.jar;D:\Java_Soft\java\jdk8\jdk1.8.0_191\jre\lib\ext\jfxrt.jar;D:\Java_Soft\java\jdk8\jdk1.8.0_191\jre\lib\ext\localedata.jar;D:\Java_Soft\java\jdk8\jdk1.8.0_191\jre\lib\ext\nashorn.jar;D:\Java_Soft\java\jdk8\jdk1.8.0_191\jre\lib\ext\sunec.jar;D:\Java_Soft\java\jdk8\jdk1.8.0_191\jre\lib\ext\sunjce_provider.jar;D:\Java_Soft\java\jdk8\jdk1.8.0_191\jre\lib\ext\sunmscapi.jar;D:\Java_Soft\java\jdk8\jdk1.8.0_191\jre\lib\ext\sunpkcs11.jar;D:\Java_Soft\java\jdk8\jdk1.8.0_191\jre\lib\ext\zipfs.jar;D:\Java_Soft\java\jdk8\jdk1.8.0_191\jre\lib\javaws.jar;D:\Java_Soft\java\jdk8\jdk1.8.0_191\jre\lib\jce.jar;D:\Java_Soft\java\jdk8\jdk1.8.0_191\jre\lib\jfr.jar;D:\Java_Soft\java\jdk8\jdk1.8.0_191\jre\lib\jfxswt.jar;D:\Java_Soft\java\jdk8\jdk1.8.0_191\jre\lib\jsse.jar;D:\Java_Soft\java\jdk8\jdk1.8.0_191\jre\lib\management-agent.jar;D:\Java_Soft\java\jdk8\jdk1.8.0_191\jre\lib\plugin.jar;D:\Java_Soft\java\jdk8\jdk1.8.0_191\jre\lib\resources.jar;D:\Java_Soft\java\jdk8\jdk1.8.0_191\jre\lib\rt.jar;D:\Java_workspace\idea_workspace\Gitee\SpringBlade\blade-ops\blade-admin\target\classes;D:\Java_workspace\idea_workspace\Gitee\SpringBlade\blade-common\target\classes;D:\Java_workspace\idea_workspace\Gitee\SpringBlade\blade-tool\blade-core-loadbalancer\target\classes;D:\Java_workspace\idea_workspace\Gitee\SpringBlade\blade-tool\blade-core-launch\target\classes;D:\Java_Soft\Apache\apache-maven\repository\org\springframework\boot\spring-boot-starter-web\2.7.10\spring-boot-starter-web-2.7.10.jar;D:\Java_Soft\Apache\apache-maven\repository\org\springframework\boot\spring-boot-starter\2.7.10\spring-boot-starter-2.7.10.jar;D:\Java_Soft\Apache\apache-maven\repository\org\springframework\boot\spring-boot\2.7.10\spring-boot-2.7.10.jar;D:\Java_Soft\Apache\apache-maven\repository\org\springframework\boot\spring-boot-autoconfigure\2.7.10\spring-boot-autoconfigure-2.7.10.jar;D:\Java_Soft\Apache\apache-maven\repository\org\springframework\boot\spring-boot-starter-logging\2.7.10\spring-boot-starter-logging-2.7.10.jar;D:\Java_Soft\Apache\apache-maven\repository\ch\qos\logback\logback-classic\1.2.11\logback-classic-1.2.11.jar;D:\Java_Soft\Apache\apache-maven\repository\ch\qos\logback\logback-core\1.2.11\logback-core-1.2.11.jar;D:\Java_Soft\Apache\apache-maven\repository\org\apache\logging\log4j\log4j-to-slf4j\2.17.2\log4j-to-slf4j-2.17.2.jar;D:\Java_Soft\Apache\apache-maven\repository\org\apache\logging\log4j\log4j-api\2.17.2\log4j-api-2.17.2.jar;D:\Java_Soft\Apache\apache-maven\repository\org\slf4j\jul-to-slf4j\1.7.36\jul-to-slf4j-1.7.36.jar;D:\Java_Soft\Apache\apache-maven\repository\jakarta\annotation\jakarta.annotation-api\1.3.5\jakarta.annotation-api-1.3.5.jar;D:\Java_Soft\Apache\apache-maven\repository\org\springframework\spring-core\5.3.27\spring-core-5.3.27.jar;D:\Java_Soft\Apache\apache-maven\repository\org\springframework\spring-jcl\5.3.27\spring-jcl-5.3.27.jar;D:\Java_Soft\Apache\apache-maven\repository\org\springframework\boot\spring-boot-starter-json\2.7.10\spring-boot-starter-json-2.7.10.jar;D:\Java_Soft\Apache\apache-maven\repository\com\fasterxml\jackson\datatype\jackson-datatype-jdk8\2.13.5\jackson-datatype-jdk8-2.13.5.jar;D:\Java_Soft\Apache\apache-maven\repository\com\fasterxml\jackson\module\jackson-module-parameter-names\2.13.5\jackson-module-parameter-names-2.13.5.jar;D:\Java_Soft\Apache\apache-maven\repository\org\springframework\spring-web\5.3.27\spring-web-5.3.27.jar;D:\Java_Soft\Apache\apache-maven\repository\org\springframework\spring-beans\5.3.27\spring-beans-5.3.27.jar;D:\Java_Soft\Apache\apache-maven\repository\org\springframework\spring-webmvc\5.3.27\spring-webmvc-5.3.27.jar;D:\Java_Soft\Apache\apache-maven\repository\org\springframework\spring-context\5.3.27\spring-context-5.3.27.jar;D:\Java_Soft\Apache\apache-maven\repository\org\springframework\spring-expression\5.3.27\spring-expression-5.3.27.jar;D:\Java_Soft\Apache\apache-maven\repository\org\springframework\boot\spring-boot-starter-undertow\2.7.10\spring-boot-starter-undertow-2.7.10.jar;D:\Java_Soft\Apache\apache-maven\repository\io\undertow\undertow-core\2.2.23.Final\undertow-core-2.2.23.Final.jar;D:\Java_Soft\Apache\apache-maven\repository\org\jboss\xnio\xnio-api\3.8.7.Final\xnio-api-3.8.7.Final.jar;D:\Java_Soft\Apache\apache-maven\repository\org\wildfly\common\wildfly-common\1.5.4.Final\wildfly-common-1.5.4.Final.jar;D:\Java_Soft\Apache\apache-maven\repository\org\wildfly\client\wildfly-client-config\1.0.1.Final\wildfly-client-config-1.0.1.Final.jar;D:\Java_Soft\Apache\apache-maven\repository\org\jboss\xnio\xnio-nio\3.8.7.Final\xnio-nio-3.8.7.Final.jar;D:\Java_Soft\Apache\apache-maven\repository\org\jboss\threads\jboss-threads\3.1.0.Final\jboss-threads-3.1.0.Final.jar;D:\Java_Soft\Apache\apache-maven\repository\io\undertow\undertow-servlet\2.2.23.Final\undertow-servlet-2.2.23.Final.jar;D:\Java_Soft\Apache\apache-maven\repository\io\undertow\undertow-websockets-jsr\2.2.23.Final\undertow-websockets-jsr-2.2.23.Final.jar;D:\Java_Soft\Apache\apache-maven\repository\jakarta\servlet\jakarta.servlet-api\4.0.4\jakarta.servlet-api-4.0.4.jar;D:\Java_Soft\Apache\apache-maven\repository\jakarta\websocket\jakarta.websocket-api\1.1.2\jakarta.websocket-api-1.1.2.jar;D:\Java_Soft\Apache\apache-maven\repository\org\apache\tomcat\embed\tomcat-embed-el\9.0.73\tomcat-embed-el-9.0.73.jar;D:\Java_Soft\Apache\apache-maven\repository\org\springframework\boot\spring-boot-starter-aop\2.7.10\spring-boot-starter-aop-2.7.10.jar;D:\Java_Soft\Apache\apache-maven\repository\org\springframework\spring-aop\5.3.27\spring-aop-5.3.27.jar;D:\Java_Soft\Apache\apache-maven\repository\org\aspectj\aspectjweaver\1.9.7\aspectjweaver-1.9.7.jar;D:\Java_Soft\Apache\apache-maven\repository\org\springframework\boot\spring-boot-starter-actuator\2.7.10\spring-boot-starter-actuator-2.7.10.jar;D:\Java_Soft\Apache\apache-maven\repository\org\springframework\boot\spring-boot-actuator-autoconfigure\2.7.10\spring-boot-actuator-autoconfigure-2.7.10.jar;D:\Java_Soft\Apache\apache-maven\repository\org\springframework\boot\spring-boot-actuator\2.7.10\spring-boot-actuator-2.7.10.jar;D:\Java_Soft\Apache\apache-maven\repository\io\micrometer\micrometer-core\1.9.9\micrometer-core-1.9.9.jar;D:\Java_Soft\Apache\apache-maven\repository\org\hdrhistogram\HdrHistogram\2.1.12\HdrHistogram-2.1.12.jar;D:\Java_Soft\Apache\apache-maven\repository\org\latencyutils\LatencyUtils\2.0.3\LatencyUtils-2.0.3.jar;D:\Java_Soft\Apache\apache-maven\repository\org\springframework\retry\spring-retry\1.3.4\spring-retry-1.3.4.jar;D:\Java_Soft\Apache\apache-maven\repository\org\hibernate\validator\hibernate-validator\6.2.5.Final\hibernate-validator-6.2.5.Final.jar;D:\Java_Soft\Apache\apache-maven\repository\jakarta\validation\jakarta.validation-api\2.0.2\jakarta.validation-api-2.0.2.jar;D:\Java_Soft\Apache\apache-maven\repository\org\jboss\logging\jboss-logging\3.4.3.Final\jboss-logging-3.4.3.Final.jar;D:\Java_Soft\Apache\apache-maven\repository\com\fasterxml\classmate\1.5.1\classmate-1.5.1.jar;D:\Java_workspace\idea_workspace\Gitee\SpringBlade\blade-tool\blade-core-tool\target\classes;D:\Java_Soft\Apache\apache-maven\repository\com\fasterxml\jackson\datatype\jackson-datatype-jsr310\2.13.5\jackson-datatype-jsr310-2.13.5.jar;D:\Java_Soft\Apache\apache-maven\repository\com\fasterxml\jackson\core\jackson-annotations\2.13.5\jackson-annotations-2.13.5.jar;D:\Java_Soft\Apache\apache-maven\repository\com\fasterxml\jackson\core\jackson-core\2.13.5\jackson-core-2.13.5.jar;D:\Java_Soft\Apache\apache-maven\repository\com\fasterxml\jackson\core\jackson-databind\2.13.5\jackson-databind-2.13.5.jar;D:\Java_Soft\Apache\apache-maven\repository\com\google\guava\guava\31.1-jre\guava-31.1-jre.jar;D:\Java_Soft\Apache\apache-maven\repository\com\google\guava\failureaccess\1.0.1\failureaccess-1.0.1.jar;D:\Java_Soft\Apache\apache-maven\repository\com\google\guava\listenablefuture\9999.0-empty-to-avoid-conflict-with-guava\listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar;D:\Java_Soft\Apache\apache-maven\repository\com\google\code\findbugs\jsr305\3.0.2\jsr305-3.0.2.jar;D:\Java_Soft\Apache\apache-maven\repository\org\checkerframework\checker-qual\3.12.0\checker-qual-3.12.0.jar;D:\Java_Soft\Apache\apache-maven\repository\com\google\errorprone\error_prone_annotations\2.11.0\error_prone_annotations-2.11.0.jar;D:\Java_Soft\Apache\apache-maven\repository\com\google\j2objc\j2objc-annotations\1.3\j2objc-annotations-1.3.jar;D:\Java_Soft\Apache\apache-maven\repository\com\squareup\okhttp3\okhttp\4.9.3\okhttp-4.9.3.jar;D:\Java_Soft\Apache\apache-maven\repository\com\squareup\okio\okio\2.8.0\okio-2.8.0.jar;D:\Java_Soft\Apache\apache-maven\repository\org\jetbrains\kotlin\kotlin-stdlib-common\1.6.21\kotlin-stdlib-common-1.6.21.jar;D:\Java_Soft\Apache\apache-maven\repository\org\jetbrains\kotlin\kotlin-stdlib\1.6.21\kotlin-stdlib-1.6.21.jar;D:\Java_Soft\Apache\apache-maven\repository\org\jetbrains\annotations\13.0\annotations-13.0.jar;D:\Java_Soft\Apache\apache-maven\repository\io\springfox\springfox-swagger2\2.10.5\springfox-swagger2-2.10.5.jar;D:\Java_Soft\Apache\apache-maven\repository\io\springfox\springfox-spi\2.10.5\springfox-spi-2.10.5.jar;D:\Java_Soft\Apache\apache-maven\repository\io\springfox\springfox-core\2.10.5\springfox-core-2.10.5.jar;D:\Java_Soft\Apache\apache-maven\repository\net\bytebuddy\byte-buddy\1.12.23\byte-buddy-1.12.23.jar;D:\Java_Soft\Apache\apache-maven\repository\io\springfox\springfox-schema\2.10.5\springfox-schema-2.10.5.jar;D:\Java_Soft\Apache\apache-maven\repository\io\springfox\springfox-swagger-common\2.10.5\springfox-swagger-common-2.10.5.jar;D:\Java_Soft\Apache\apache-maven\repository\io\springfox\springfox-spring-web\2.10.5\springfox-spring-web-2.10.5.jar;D:\Java_Soft\Apache\apache-maven\repository\io\github\classgraph\classgraph\4.1.7\classgraph-4.1.7.jar;D:\Java_Soft\Apache\apache-maven\repository\org\slf4j\slf4j-api\1.7.36\slf4j-api-1.7.36.jar;D:\Java_Soft\Apache\apache-maven\repository\org\springframework\plugin\spring-plugin-core\2.0.0.RELEASE\spring-plugin-core-2.0.0.RELEASE.jar;D:\Java_Soft\Apache\apache-maven\repository\org\springframework\plugin\spring-plugin-metadata\2.0.0.RELEASE\spring-plugin-metadata-2.0.0.RELEASE.jar;D:\Java_Soft\Apache\apache-maven\repository\org\mapstruct\mapstruct\1.3.1.Final\mapstruct-1.3.1.Final.jar;D:\Java_Soft\Apache\apache-maven\repository\io\swagger\swagger-models\1.6.6\swagger-models-1.6.6.jar;D:\Java_Soft\Apache\apache-maven\repository\io\swagger\swagger-annotations\1.6.6\swagger-annotations-1.6.6.jar;D:\Java_Soft\Apache\apache-maven\repository\io\protostuff\protostuff-core\1.6.0\protostuff-core-1.6.0.jar;D:\Java_Soft\Apache\apache-maven\repository\io\protostuff\protostuff-api\1.6.0\protostuff-api-1.6.0.jar;D:\Java_Soft\Apache\apache-maven\repository\io\protostuff\protostuff-runtime\1.6.0\protostuff-runtime-1.6.0.jar;D:\Java_Soft\Apache\apache-maven\repository\io\protostuff\protostuff-collectionschema\1.6.0\protostuff-collectionschema-1.6.0.jar;D:\Java_Soft\Apache\apache-maven\repository\org\springframework\boot\spring-boot-starter-data-redis\2.7.10\spring-boot-starter-data-redis-2.7.10.jar;D:\Java_Soft\Apache\apache-maven\repository\org\springframework\data\spring-data-redis\2.7.10\spring-data-redis-2.7.10.jar;D:\Java_Soft\Apache\apache-maven\repository\org\springframework\data\spring-data-keyvalue\2.7.10\spring-data-keyvalue-2.7.10.jar;D:\Java_Soft\Apache\apache-maven\repository\org\springframework\data\spring-data-commons\2.7.10\spring-data-commons-2.7.10.jar;D:\Java_Soft\Apache\apache-maven\repository\org\springframework\spring-tx\5.3.27\spring-tx-5.3.27.jar;D:\Java_Soft\Apache\apache-maven\repository\org\springframework\spring-oxm\5.3.27\spring-oxm-5.3.27.jar;D:\Java_Soft\Apache\apache-maven\repository\org\springframework\spring-context-support\5.3.27\spring-context-support-5.3.27.jar;D:\Java_Soft\Apache\apache-maven\repository\io\lettuce\lettuce-core\6.1.10.RELEASE\lettuce-core-6.1.10.RELEASE.jar;D:\Java_Soft\Apache\apache-maven\repository\io\netty\netty-common\4.1.90.Final\netty-common-4.1.90.Final.jar;D:\Java_Soft\Apache\apache-maven\repository\io\netty\netty-handler\4.1.90.Final\netty-handler-4.1.90.Final.jar;D:\Java_Soft\Apache\apache-maven\repository\io\netty\netty-resolver\4.1.90.Final\netty-resolver-4.1.90.Final.jar;D:\Java_Soft\Apache\apache-maven\repository\io\netty\netty-buffer\4.1.90.Final\netty-buffer-4.1.90.Final.jar;D:\Java_Soft\Apache\apache-maven\repository\io\netty\netty-transport-native-unix-common\4.1.90.Final\netty-transport-native-unix-common-4.1.90.Final.jar;D:\Java_Soft\Apache\apache-maven\repository\io\netty\netty-codec\4.1.90.Final\netty-codec-4.1.90.Final.jar;D:\Java_Soft\Apache\apache-maven\repository\io\netty\netty-transport\4.1.90.Final\netty-transport-4.1.90.Final.jar;D:\Java_Soft\Apache\apache-maven\repository\io\projectreactor\reactor-core\3.4.28\reactor-core-3.4.28.jar;D:\Java_Soft\Apache\apache-maven\repository\org\reactivestreams\reactive-streams\1.0.4\reactive-streams-1.0.4.jar;D:\Java_workspace\idea_workspace\Gitee\SpringBlade\blade-tool\blade-core-cloud\target\classes;D:\Java_Soft\Apache\apache-maven\repository\org\springframework\cloud\spring-cloud-starter-openfeign\3.1.6\spring-cloud-starter-openfeign-3.1.6.jar;D:\Java_Soft\Apache\apache-maven\repository\org\springframework\cloud\spring-cloud-starter\3.1.6\spring-cloud-starter-3.1.6.jar;D:\Java_Soft\Apache\apache-maven\repository\org\springframework\security\spring-security-rsa\1.0.11.RELEASE\spring-security-rsa-1.0.11.RELEASE.jar;D:\Java_Soft\Apache\apache-maven\repository\org\bouncycastle\bcpkix-jdk15on\1.69\bcpkix-jdk15on-1.69.jar;D:\Java_Soft\Apache\apache-maven\repository\org\bouncycastle\bcprov-jdk15on\1.69\bcprov-jdk15on-1.69.jar;D:\Java_Soft\Apache\apache-maven\repository\org\bouncycastle\bcutil-jdk15on\1.69\bcutil-jdk15on-1.69.jar;D:\Java_Soft\Apache\apache-maven\repository\org\springframework\cloud\spring-cloud-openfeign-core\3.1.6\spring-cloud-openfeign-core-3.1.6.jar;D:\Java_Soft\Apache\apache-maven\repository\io\github\openfeign\form\feign-form-spring\3.8.0\feign-form-spring-3.8.0.jar;D:\Java_Soft\Apache\apache-maven\repository\io\github\openfeign\form\feign-form\3.8.0\feign-form-3.8.0.jar;D:\Java_Soft\Apache\apache-maven\repository\commons-fileupload\commons-fileupload\1.4\commons-fileupload-1.4.jar;D:\Java_Soft\Apache\apache-maven\repository\org\springframework\cloud\spring-cloud-commons\3.1.6\spring-cloud-commons-3.1.6.jar;D:\Java_Soft\Apache\apache-maven\repository\org\springframework\security\spring-security-crypto\5.7.7\spring-security-crypto-5.7.7.jar;D:\Java_Soft\Apache\apache-maven\repository\io\github\openfeign\feign-core\11.10\feign-core-11.10.jar;D:\Java_Soft\Apache\apache-maven\repository\io\github\openfeign\feign-slf4j\11.10\feign-slf4j-11.10.jar;D:\Java_Soft\Apache\apache-maven\repository\io\github\openfeign\feign-okhttp\11.10\feign-okhttp-11.10.jar;D:\Java_Soft\Apache\apache-maven\repository\org\springframework\cloud\spring-cloud-starter-loadbalancer\3.1.6\spring-cloud-starter-loadbalancer-3.1.6.jar;D:\Java_Soft\Apache\apache-maven\repository\org\springframework\cloud\spring-cloud-loadbalancer\3.1.6\spring-cloud-loadbalancer-3.1.6.jar;D:\Java_Soft\Apache\apache-maven\repository\org\springframework\boot\spring-boot-starter-cache\2.7.10\spring-boot-starter-cache-2.7.10.jar;D:\Java_Soft\Apache\apache-maven\repository\com\stoyanr\evictor\1.0.0\evictor-1.0.0.jar;D:\Java_Soft\Apache\apache-maven\repository\org\springframework\cloud\spring-cloud-starter-bootstrap\3.1.6\spring-cloud-starter-bootstrap-3.1.6.jar;D:\Java_Soft\Apache\apache-maven\repository\de\codecentric\spring-boot-admin-starter-client\2.7.10\spring-boot-admin-starter-client-2.7.10.jar;D:\Java_Soft\Apache\apache-maven\repository\de\codecentric\spring-boot-admin-client\2.7.10\spring-boot-admin-client-2.7.10.jar;D:\Java_Soft\Apache\apache-maven\repository\com\alibaba\cloud\spring-cloud-starter-alibaba-nacos-discovery\2021.0.5.0\spring-cloud-starter-alibaba-nacos-discovery-2021.0.5.0.jar;D:\Java_Soft\Apache\apache-maven\repository\com\alibaba\cloud\spring-cloud-alibaba-commons\2021.0.5.0\spring-cloud-alibaba-commons-2021.0.5.0.jar;D:\Java_Soft\Apache\apache-maven\repository\com\alibaba\spring\spring-context-support\1.0.11\spring-context-support-1.0.11.jar;D:\Java_Soft\Apache\apache-maven\repository\org\springframework\cloud\spring-cloud-context\3.1.6\spring-cloud-context-3.1.6.jar;D:\Java_Soft\Apache\apache-maven\repository\com\alibaba\cloud\spring-cloud-starter-alibaba-nacos-config\2021.0.5.0\spring-cloud-starter-alibaba-nacos-config-2021.0.5.0.jar;D:\Java_Soft\Apache\apache-maven\repository\com\alibaba\nacos\nacos-client\2.2.0\nacos-client-2.2.0.jar;D:\Java_Soft\Apache\apache-maven\repository\com\alibaba\nacos\nacos-auth-plugin\2.2.0\nacos-auth-plugin-2.2.0.jar;D:\Java_Soft\Apache\apache-maven\repository\com\alibaba\nacos\nacos-encryption-plugin\2.2.0\nacos-encryption-plugin-2.2.0.jar;D:\Java_Soft\Apache\apache-maven\repository\commons-codec\commons-codec\1.15\commons-codec-1.15.jar;D:\Java_Soft\Apache\apache-maven\repository\org\apache\httpcomponents\httpasyncclient\4.1.5\httpasyncclient-4.1.5.jar;D:\Java_Soft\Apache\apache-maven\repository\org\apache\httpcomponents\httpcore\4.4.16\httpcore-4.4.16.jar;D:\Java_Soft\Apache\apache-maven\repository\org\apache\httpcomponents\httpcore-nio\4.4.16\httpcore-nio-4.4.16.jar;D:\Java_Soft\Apache\apache-maven\repository\io\prometheus\simpleclient\0.15.0\simpleclient-0.15.0.jar;D:\Java_Soft\Apache\apache-maven\repository\io\prometheus\simpleclient_tracer_otel\0.15.0\simpleclient_tracer_otel-0.15.0.jar;D:\Java_Soft\Apache\apache-maven\repository\io\prometheus\simpleclient_tracer_common\0.15.0\simpleclient_tracer_common-0.15.0.jar;D:\Java_Soft\Apache\apache-maven\repository\io\prometheus\simpleclient_tracer_otel_agent\0.15.0\simpleclient_tracer_otel_agent-0.15.0.jar;D:\Java_Soft\Apache\apache-maven\repository\org\yaml\snakeyaml\1.30\snakeyaml-1.30.jar;D:\Java_Soft\Apache\apache-maven\repository\com\alibaba\cloud\spring-cloud-starter-alibaba-sentinel\2021.0.5.0\spring-cloud-starter-alibaba-sentinel-2021.0.5.0.jar;D:\Java_Soft\Apache\apache-maven\repository\com\alibaba\csp\sentinel-transport-simple-http\1.8.6\sentinel-transport-simple-http-1.8.6.jar;D:\Java_Soft\Apache\apache-maven\repository\com\alibaba\csp\sentinel-transport-common\1.8.6\sentinel-transport-common-1.8.6.jar;D:\Java_Soft\Apache\apache-maven\repository\com\alibaba\csp\sentinel-datasource-extension\1.8.6\sentinel-datasource-extension-1.8.6.jar;D:\Java_Soft\Apache\apache-maven\repository\com\alibaba\csp\sentinel-annotation-aspectj\1.8.6\sentinel-annotation-aspectj-1.8.6.jar;D:\Java_Soft\Apache\apache-maven\repository\com\alibaba\csp\sentinel-core\1.8.6\sentinel-core-1.8.6.jar;D:\Java_Soft\Apache\apache-maven\repository\com\alibaba\cloud\spring-cloud-circuitbreaker-sentinel\2021.0.5.0\spring-cloud-circuitbreaker-sentinel-2021.0.5.0.jar;D:\Java_Soft\Apache\apache-maven\repository\com\alibaba\csp\sentinel-reactor-adapter\1.8.6\sentinel-reactor-adapter-1.8.6.jar;D:\Java_Soft\Apache\apache-maven\repository\com\alibaba\csp\sentinel-spring-webflux-adapter\1.8.6\sentinel-spring-webflux-adapter-1.8.6.jar;D:\Java_Soft\Apache\apache-maven\repository\com\alibaba\csp\sentinel-spring-webmvc-adapter\1.8.6\sentinel-spring-webmvc-adapter-1.8.6.jar;D:\Java_Soft\Apache\apache-maven\repository\com\alibaba\csp\sentinel-parameter-flow-control\1.8.6\sentinel-parameter-flow-control-1.8.6.jar;D:\Java_Soft\Apache\apache-maven\repository\com\googlecode\concurrentlinkedhashmap\concurrentlinkedhashmap-lru\1.4.2\concurrentlinkedhashmap-lru-1.4.2.jar;D:\Java_Soft\Apache\apache-maven\repository\com\alibaba\csp\sentinel-cluster-server-default\1.8.6\sentinel-cluster-server-default-1.8.6.jar;D:\Java_Soft\Apache\apache-maven\repository\com\alibaba\csp\sentinel-cluster-common-default\1.8.6\sentinel-cluster-common-default-1.8.6.jar;D:\Java_Soft\Apache\apache-maven\repository\com\alibaba\csp\sentinel-cluster-client-default\1.8.6\sentinel-cluster-client-default-1.8.6.jar;D:\Java_Soft\Apache\apache-maven\repository\com\alibaba\cloud\spring-cloud-alibaba-sentinel-datasource\2021.0.5.0\spring-cloud-alibaba-sentinel-datasource-2021.0.5.0.jar;D:\Java_Soft\Apache\apache-maven\repository\com\alibaba\fastjson\1.2.83_noneautotype\fastjson-1.2.83_noneautotype.jar;D:\Java_Soft\Apache\apache-maven\repository\de\codecentric\spring-boot-admin-starter-server\2.7.10\spring-boot-admin-starter-server-2.7.10.jar;D:\Java_Soft\Apache\apache-maven\repository\de\codecentric\spring-boot-admin-server\2.7.10\spring-boot-admin-server-2.7.10.jar;D:\Java_Soft\Apache\apache-maven\repository\org\springframework\boot\spring-boot-starter-webflux\2.7.10\spring-boot-starter-webflux-2.7.10.jar;D:\Java_Soft\Apache\apache-maven\repository\org\springframework\boot\spring-boot-starter-reactor-netty\2.7.10\spring-boot-starter-reactor-netty-2.7.10.jar;D:\Java_Soft\Apache\apache-maven\repository\io\projectreactor\netty\reactor-netty-http\1.0.30\reactor-netty-http-1.0.30.jar;D:\Java_Soft\Apache\apache-maven\repository\io\netty\netty-codec-http\4.1.90.Final\netty-codec-http-4.1.90.Final.jar;D:\Java_Soft\Apache\apache-maven\repository\io\netty\netty-codec-http2\4.1.90.Final\netty-codec-http2-4.1.90.Final.jar;D:\Java_Soft\Apache\apache-maven\repository\io\netty\netty-resolver-dns\4.1.90.Final\netty-resolver-dns-4.1.90.Final.jar;D:\Java_Soft\Apache\apache-maven\repository\io\netty\netty-codec-dns\4.1.90.Final\netty-codec-dns-4.1.90.Final.jar;D:\Java_Soft\Apache\apache-maven\repository\io\netty\netty-resolver-dns-native-macos\4.1.90.Final\netty-resolver-dns-native-macos-4.1.90.Final-osx-x86_64.jar;D:\Java_Soft\Apache\apache-maven\repository\io\netty\netty-resolver-dns-classes-macos\4.1.90.Final\netty-resolver-dns-classes-macos-4.1.90.Final.jar;D:\Java_Soft\Apache\apache-maven\repository\io\netty\netty-transport-native-epoll\4.1.90.Final\netty-transport-native-epoll-4.1.90.Final-linux-x86_64.jar;D:\Java_Soft\Apache\apache-maven\repository\io\netty\netty-transport-classes-epoll\4.1.90.Final\netty-transport-classes-epoll-4.1.90.Final.jar;D:\Java_Soft\Apache\apache-maven\repository\io\projectreactor\netty\reactor-netty-core\1.0.30\reactor-netty-core-1.0.30.jar;D:\Java_Soft\Apache\apache-maven\repository\io\netty\netty-handler-proxy\4.1.90.Final\netty-handler-proxy-4.1.90.Final.jar;D:\Java_Soft\Apache\apache-maven\repository\io\netty\netty-codec-socks\4.1.90.Final\netty-codec-socks-4.1.90.Final.jar;D:\Java_Soft\Apache\apache-maven\repository\org\springframework\spring-webflux\5.3.27\spring-webflux-5.3.27.jar;D:\Java_Soft\Apache\apache-maven\repository\org\springframework\boot\spring-boot-starter-thymeleaf\2.7.10\spring-boot-starter-thymeleaf-2.7.10.jar;D:\Java_Soft\Apache\apache-maven\repository\org\thymeleaf\thymeleaf-spring5\3.0.15.RELEASE\thymeleaf-spring5-3.0.15.RELEASE.jar;D:\Java_Soft\Apache\apache-maven\repository\org\thymeleaf\thymeleaf\3.0.15.RELEASE\thymeleaf-3.0.15.RELEASE.jar;D:\Java_Soft\Apache\apache-maven\repository\org\attoparser\attoparser\2.0.5.RELEASE\attoparser-2.0.5.RELEASE.jar;D:\Java_Soft\Apache\apache-maven\repository\org\unbescape\unbescape\1.1.6.RELEASE\unbescape-1.1.6.RELEASE.jar;D:\Java_Soft\Apache\apache-maven\repository\org\thymeleaf\extras\thymeleaf-extras-java8time\3.0.4.RELEASE\thymeleaf-extras-java8time-3.0.4.RELEASE.jar;D:\Java_Soft\Apache\apache-maven\repository\org\apache\httpcomponents\httpclient\4.5.14\httpclient-4.5.14.jar;D:\Java_Soft\Apache\apache-maven\repository\io\projectreactor\addons\reactor-extra\3.4.10\reactor-extra-3.4.10.jar;D:\Java_Soft\Apache\apache-maven\repository\de\codecentric\spring-boot-admin-server-ui\2.7.10\spring-boot-admin-server-ui-2.7.10.jar;D:\Java_Soft\Apache\apache-maven\repository\de\codecentric\spring-boot-admin-server-cloud\2.7.10\spring-boot-admin-server-cloud-2.7.10.jar;D:\Java_Soft\Apache\apache-maven\repository\org\projectlombok\lombok\1.18.26\lombok-1.18.26.jar;D:\Java_Soft\ideaIU-2020.2.2.win\lib\idea_rt.jar org.springblade.admin.AdminApplication

Connected to the target VM, address: '127.0.0.1:7252', transport: 'socket'

14:17:10.728 [main] DEBUG org.springframework.core.env.PropertySourcesPropertyResolver - Found key 'spring.profiles.active' in PropertySource 'systemProperties' with value of type String

14:17:10.755 [main] DEBUG org.springframework.core.env.StandardEnvironment - Activating profiles [local]

----启动中,读取到的环境变量:[local],jar地址:[/D:/Java_workspace/idea_workspace/Gitee/SpringBlade/blade-ops/blade-admin/target/classes/]----

2023-06-25 14:17:18.295  INFO 28836 --- [           main] c.a.n.client.env.SearchableProperties    : properties search order:PROPERTIES->JVM->ENV->DEFAULT_SETTING

2023-06-25 14:17:18.912  INFO 28836 --- [           main] c.a.n.p.a.s.c.ClientAuthPluginManager    : [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.impl.NacosClientAuthServiceImpl success.

2023-06-25 14:17:18.912  INFO 28836 --- [           main] c.a.n.p.a.s.c.ClientAuthPluginManager    : [ClientAuthPluginManager] Load ClientAuthService com.alibaba.nacos.client.auth.ram.RamClientAuthServiceImpl success.

 _____               _                 ______  _             _

/  ___|             (_)                | ___ \| |           | |

\ `--.  _ __   _ __  _  _ __    __ _   | |_/ /| |  __ _   __| |  ___

 `--. \| '_ \ | '__|| || '_ \  / _` |  | ___ \| | / _` | / _` | / _ \

/\__/ /| |_) || |   | || | | || (_| |  | |_/ /| || (_| || (_| ||  __/

\____/ | .__/ |_|   |_||_| |_| \__, |  \____/ |_| \__,_| \__,_| \___|

       | |                      __/ |

       |_|                     |___/


:: SpringBlade :: blade-admin:local :: Running SpringBoot 2.7.10 :: 


2023-06-25 14:17:27.588  WARN 28836 --- [           main] c.a.c.n.c.NacosPropertySourceBuilder     : Ignore the empty nacos configuration and get it based on dataId[blade] & group[DEFAULT_GROUP]

2023-06-25 14:17:27.921  WARN 28836 --- [           main] c.a.c.n.c.NacosPropertySourceBuilder     : Ignore the empty nacos configuration and get it based on dataId[blade.yaml] & group[DEFAULT_GROUP]

2023-06-25 14:17:28.248  WARN 28836 --- [           main] c.a.c.n.c.NacosPropertySourceBuilder     : Ignore the empty nacos configuration and get it based on dataId[blade-local.yaml] & group[DEFAULT_GROUP]

2023-06-25 14:17:28.250  INFO 28836 --- [           main] b.c.PropertySourceBootstrapConfiguration : Located property source: [BootstrapPropertySource {name='bootstrapProperties-blade-local.yaml,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-blade.yaml,DEFAULT_GROUP'}, BootstrapPropertySource {name='bootstrapProperties-blade,DEFAULT_GROUP'}]

2023-06-25 14:17:28.277  INFO 28836 --- [           main] org.springblade.admin.AdminApplication   : The following 1 profile is active: "local"

2023-06-25 14:17:29.597  INFO 28836 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Multiple Spring Data modules found, entering strict repository configuration mode

2023-06-25 14:17:29.600  INFO 28836 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Bootstrapping Spring Data Redis repositories in DEFAULT mode.

2023-06-25 14:17:29.626  INFO 28836 --- [           main] .s.d.r.c.RepositoryConfigurationDelegate : Finished Spring Data repository scanning in 6 ms. Found 0 Redis repository interfaces.

2023-06-25 14:17:29.958  INFO 28836 --- [           main] o.s.cloud.context.scope.GenericScope     : BeanFactory id=b4e2eaac-2314-3b6b-8c51-06ce7e40a94d

2023-06-25 14:17:30.304  INFO 28836 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.client.loadbalancer.reactive.LoadBalancerBeanPostProcessorAutoConfiguration' of type [org.springframework.cloud.client.loadbalancer.reactive.LoadBalancerBeanPostProcessorAutoConfiguration] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2023-06-25 14:17:30.306  INFO 28836 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'org.springframework.cloud.client.loadbalancer.reactive.LoadBalancerBeanPostProcessorAutoConfiguration$ReactorDeferringLoadBalancerFilterConfig' of type [org.springframework.cloud.client.loadbalancer.reactive.LoadBalancerBeanPostProcessorAutoConfiguration$ReactorDeferringLoadBalancerFilterConfig] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2023-06-25 14:17:30.308  INFO 28836 --- [           main] trationDelegate$BeanPostProcessorChecker : Bean 'reactorDeferringLoadBalancerExchangeFilterFunction' of type [org.springframework.cloud.client.loadbalancer.reactive.DeferringLoadBalancerExchangeFilterFunction] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)

2023-06-25 14:17:30.536  WARN 28836 --- [           main] io.undertow.websockets.jsr               : UT026010: Buffer pool was not set on WebSocketDeploymentInfo, the default pool will be used

2023-06-25 14:17:30.568  INFO 28836 --- [           main] io.undertow.servlet                      : Initializing Spring embedded WebApplicationContext

2023-06-25 14:17:30.569  INFO 28836 --- [           main] w.s.c.ServletWebServerApplicationContext : Root WebApplicationContext: initialization completed in 2269 ms

2023-06-25 14:17:31.272  INFO 28836 --- [           main] c.a.c.sentinel.SentinelWebMvcConfigurer  : [Sentinel Starter] register SentinelWebInterceptor with urlPatterns: [/**].

2023-06-25 14:17:31.325  INFO 28836 --- [           main] .c.c.v.BladeRequestMappingHandlerMapping : Mapped "{ [/error], produces [text/html]}" onto org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController#errorHtml(HttpServletRequest, HttpServletResponse)

2023-06-25 14:17:31.326  INFO 28836 --- [           main] .c.c.v.BladeRequestMappingHandlerMapping : Mapped "{ [/error]}" onto org.springframework.boot.autoconfigure.web.servlet.error.BasicErrorController#error(HttpServletRequest)

2023-06-25 14:17:31.428  WARN 28836 --- [           main] ion$DefaultTemplateResolverConfiguration : Cannot find template location: classpath:/templates/ (please add some templates, check your Thymeleaf configuration, or set spring.thymeleaf.check-template-location=false)

2023-06-25 14:17:33.950  WARN 28836 --- [           main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'httpClient' defined in class path resource [org/springblade/core/cloud/http/RestTemplateConfiguration.class]: Unsatisfied dependency expressed through method 'httpClient' parameter 3; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type 'org.springblade.core.cloud.http.HttpLoggingInterceptor' available: expected at least 1 bean which qualifies as autowire candidate. Dependency annotations: {}

2023-06-25 14:17:36.072  INFO 28836 --- [           main] ConditionEvaluationReportLoggingListener : 


Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.

2023-06-25 14:17:36.105 ERROR 28836 --- [           main] o.s.b.d.LoggingFailureAnalysisReporter   : 


***************************

APPLICATION FAILED TO START

***************************


Description:


Parameter 3 of method httpClient in org.springblade.core.cloud.http.RestTemplateConfiguration required a bean of type 'org.springblade.core.cloud.http.HttpLoggingInterceptor' that could not be found.



Action:


Consider defining a bean of type 'org.springblade.core.cloud.http.HttpLoggingInterceptor' in your configuration.


2023-06-25 14:17:37.045  WARN 28836 --- [      Thread-10] c.a.n.common.http.HttpClientBeanHolder   : [HttpClientBeanHolder] Start destroying common HttpClient

2023-06-25 14:17:37.045  WARN 28836 --- [      Thread-17] c.a.nacos.common.notify.NotifyCenter     : [NotifyCenter] Start destroying Publisher

2023-06-25 14:17:37.047  WARN 28836 --- [      Thread-17] c.a.nacos.common.notify.NotifyCenter     : [NotifyCenter] Destruction of the end

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


Process finished with exit code 1



五、若有更多详细信息,请在下面提供。

2条回答
  • 2023-06-25 21:59

    在resource文件夹下新建一个logback-环境名.xml的文件,这样就可以读取到了

    作者追问:2023-06-26 09:39

    哥哥呀,您这是话说一半呀,logback-环境名.xml 这是日志文件吧,我在所有resource 都加上了logback-local.xml,内容从也有,从jar包里复制的,也还是不行(不是这个问题吧)


    求指正呦~


    AppConstant 加了 

    String LOCAL_CODE = "local";

    LauncherConstant 加了

    String NACOS_LOCAL_ADDR = "192.168.142.134:8848";


    image.png

    作者追问:2023-06-28 09:45

    根本就不是 logbak 日志文件的问题哈,如果少了日志文件,就会提示以下问题哦


    image.png

    0 讨论(0)
  • 2023-06-28 10:13

    解决方案如下:


    org.springblade.core.cloud.http.RestTemplateConfiguration 

    1、重写这个类 (或者引入这个包,在重写这个类

    2、找到 testLoggingInterceptor()  注解 @Profile  添加就可以了,然后对应nacos 和 active 


    0 讨论(0)
提交回复