com.mizhousoft.translate.boot.properties.BaiduTranslateProperties Maven / Gradle / Ivy
package com.mizhousoft.translate.boot.properties;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
/**
* 配置
*
* @version
*/
@Component
@ConfigurationProperties(prefix = "translate.baidu")
public class BaiduTranslateProperties
{
/**
* appId
*/
private volatile String appId;
/**
* appSecret
*/
private volatile String appSecret;
/**
* 获取appId
*
* @return
*/
public String getAppId()
{
return appId;
}
/**
* 设置appId
*
* @param appId
*/
public void setAppId(String appId)
{
this.appId = appId;
}
/**
* 获取appSecret
*
* @return
*/
public String getAppSecret()
{
return appSecret;
}
/**
* 设置appSecret
*
* @param appSecret
*/
public void setAppSecret(String appSecret)
{
this.appSecret = appSecret;
}
}