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;
|
}
|
}
|