xiangpei
2025-04-18 0aa739db8268b442ab74634289ffed00124a976a
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.monkeylessey.config;
 
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
 
/**
 * @author:xp
 * @date:2025/4/18 14:28
 */
@Configuration
@ConfigurationProperties(prefix = "ai")
public class AIConfig {
 
    /**
     * 域名
     */
    private String domain;
 
    /**
     * 端口
     */
    private String port;
 
 
 
    public String getDomain() {
        return domain;
    }
 
    public void setDomain(String domain) {
        this.domain = domain;
    }
 
    public String getPort() {
        return port;
    }
 
    public void setPort(String port) {
        this.port = port;
    }
 
    /**
     * 获取完整的域
     *
     * @return
     */
    public String getFullDomain() {
        return this.domain + ":" + this.port;
    }
}