liusuyi
2026-01-19 3c8d6b8e60f02b9a40fc5acd4dc6c34a6b594eb6
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;
    }
}