Skip to content

Instantly share code, notes, and snippets.

@hseritt
Created June 27, 2016 01:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hseritt/5ef6c1ea2d1e684b28201bb1799b16cf to your computer and use it in GitHub Desktop.
Save hseritt/5ef6c1ea2d1e684b28201bb1799b16cf to your computer and use it in GitHub Desktop.
Properties configuration file
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;
@Component
@ConfigurationProperties("web.start")
public class StartPageProperties {
private String appName;
private String pageTitle;
private String templateFolder;
public String getTemplateFolder() {
return templateFolder;
}
public void setTemplateFolder(String templateFolder) {
this.templateFolder = templateFolder;
}
public String getAppName() {
return appName;
}
public void setAppName(String appName) {
this.appName = appName;
}
public String getPageTitle() {
return pageTitle;
}
public void setPageTitle(String pageTitle) {
this.pageTitle = pageTitle;
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment