Last active
October 27, 2019 19:34
-
-
Save marcusvieira88/8ebf2e79f6c499bef4f42ce0d89b753a to your computer and use it in GitHub Desktop.
Spring Cloud Config Client Configuration.java
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package tech.marcusvieira.springconfigmicroservice.configs; | |
import org.springframework.beans.factory.annotation.Value; | |
@org.springframework.context.annotation.Configuration | |
public class Configuration { | |
@Value("${configA}") | |
private String configA; | |
@Value("${configB}") | |
private String configB; | |
public String getConfigA() { | |
return configA; | |
} | |
public void setConfigA(String configA) { | |
this.configA = configA; | |
} | |
public String getConfigB() { | |
return configB; | |
} | |
public void setConfigB(String configB) { | |
this.configB = configB; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment