diff --git a/project-01/consumer/src/main/java/cn/skcks/study/springcloud/project01/config/SeaweedFsConfig.java b/project-01/consumer/src/main/java/cn/skcks/study/springcloud/project01/config/SeaweedFsConfig.java index 242e322..286ec1f 100644 --- a/project-01/consumer/src/main/java/cn/skcks/study/springcloud/project01/config/SeaweedFsConfig.java +++ b/project-01/consumer/src/main/java/cn/skcks/study/springcloud/project01/config/SeaweedFsConfig.java @@ -6,7 +6,7 @@ import org.springframework.context.annotation.Configuration; @Data @Configuration -@ConfigurationProperties(prefix = "seaweedfs") +@ConfigurationProperties(prefix = "seaweed-fs") public class SeaweedFsConfig { private String url; private String accessKey; diff --git a/project-01/consumer/src/main/resources/application.yml b/project-01/consumer/src/main/resources/application.yml index a46871b..4112ca8 100644 --- a/project-01/consumer/src/main/resources/application.yml +++ b/project-01/consumer/src/main/resources/application.yml @@ -10,7 +10,7 @@ spring: discovery: server-addr: 10.10.10.20:8848 -seaweedfs: +seaweed-fs: url: http://10.10.10.100:18333 - accessKey: fb64fcb7bbe24883b2b49c1e8d1bd02e - secretKey: b40afae726aa7e2783e47b9af60f6c6f + access-key: fb64fcb7bbe24883b2b49c1e8d1bd02e + secret-key: b40afae726aa7e2783e47b9af60f6c6f