Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 3b1c131

Browse files
committedMar 4, 2025
style(springboot autoconfigure): use a PROPERTY_PREFIX instead of hardcoded prefix
create a public static final value PROPERTY_PREFIX in DaprClientProperties change the prefix value in the ConfigurationProperties to DaprClientProperties.PROPERTY_PREFIX Dapr Cloud Config rely on that. Signed-off-by: lony2003 <[email protected]>
1 parent 36a0140 commit 3b1c131

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎dapr-spring/dapr-spring-boot-autoconfigure/src/main/java/io/dapr/spring/boot/autoconfigure/client/DaprClientProperties.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@
1616
import io.dapr.spring.data.DaprKeyValueAdapterResolver;
1717
import org.springframework.boot.context.properties.ConfigurationProperties;
1818

19-
@ConfigurationProperties(prefix = "dapr.client")
19+
@ConfigurationProperties(prefix = DaprClientProperties.PROPERTY_PREFIX)
2020
public class DaprClientProperties {
21+
public static final String PROPERTY_PREFIX = "dapr.client";
22+
2123
private String httpEndpoint;
2224
private String grpcEndpoint;
2325
private Integer httpPort;

0 commit comments

Comments
 (0)
Please sign in to comment.