com.alibaba.csp.ahas.switchcenter.SwitchProperties Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of spring-boot-starter-ahas-switch-client Show documentation
Show all versions of spring-boot-starter-ahas-switch-client Show documentation
The parent project of AHAS switch starter
package com.alibaba.csp.ahas.switchcenter;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
@ConfigurationProperties(prefix = "ahas.switch")
public class SwitchProperties {
@Value("${project.name:${spring.application.name:}}")
private String appName;
public String getAppName() {
return appName;
}
public void setAppName(String appName) {
this.appName = appName;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy