Skip to content

Instantly share code, notes, and snippets.

@CheolhoJeon
Created April 29, 2020 02:27
Show Gist options
  • Save CheolhoJeon/178a954f60ef26332e0432816dccd935 to your computer and use it in GitHub Desktop.
Save CheolhoJeon/178a954f60ef26332e0432816dccd935 to your computer and use it in GitHub Desktop.
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