zhaowenyu
2026-01-06 4e8a1c02b45f72f6377603778e8c8746ed82f374
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
package com.ard.sample.config;
 
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
 
@Component
@ConfigurationProperties(prefix = "dock")
public class DockConfiguration {
    public static String endpoint;
 
    public static String bucket;
 
    public void setEndpoint(String endpoint) {
        DockConfiguration.endpoint = endpoint;
    }
 
    public void setBucket(String bucket) {
        DockConfiguration.bucket = bucket;
    }
}