Skip to content

Instantly share code, notes, and snippets.

@hoangnt-2197
Created October 22, 2020 14:26
Show Gist options
  • Save hoangnt-2197/e8e1f73fe6f79fb27dcc5b7dc13a3e3f to your computer and use it in GitHub Desktop.
Save hoangnt-2197/e8e1f73fe6f79fb27dcc5b7dc13a3e3f to your computer and use it in GitHub Desktop.
...
@ConfigurationProperties(prefix = "knote")
class KnoteProperties {
@Value("${uploadDir:/tmp/uploads/}")
private String uploadDir;
public String getUploadDir() {
return uploadDir;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment