Created
April 29, 2020 02:27
-
-
Save CheolhoJeon/178a954f60ef26332e0432816dccd935 to your computer and use it in GitHub Desktop.
This file contains 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 spring; | |
import org.springframework.beans.factory.annotation.Value; | |
public class Info { | |
private String version; | |
public String getVersion() { | |
return version; | |
} | |
@Value("${info.version}") | |
public void setVersion(final String version) { | |
this.version = version; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment