shench3
2026-03-03 c90dd2da4cfa60c06099c4e66fba6b203bf90b59
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
package com.xiaopeng.map.config;
 
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
 
/**
 * 阿里云 OSS 配置属性(ROBOTAXI ODD 图层上传)
 */
@Data
@Component
@ConfigurationProperties(prefix = "aliyun.oss")
public class OssProperties {
 
    /**
     * 是否启用 OSS
     */
    private boolean enabled = true;
 
    /**
     * OSS Endpoint,如 oss-cn-beijing.aliyuncs.com
     */
    private String endpoint;
 
    /**
     * AccessKey ID
     */
    private String accessKeyId;
 
    /**
     * AccessKey Secret
     */
    private String accessKeySecret;
 
    /**
     * Bucket 名称
     */
    private String bucketName = "cngp-crowdsourcing";
 
    /**
     * 路径前缀,如 ROBOTAXI_ODD_layer
     */
    private String pathPrefix = "ROBOTAXI_ODD_layer";
 
    /**
     * OSS 路径中的环境:test(测试)、staging(预发)、prod(生产)
     * 支持占位符:${spring.profiles.active} 或环境变量 ${OSS_ENV:test}
     */
    private String env = "test";
}