Skip to content

Instantly share code, notes, and snippets.

@zzpzaf
Last active June 28, 2023 08:19
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 zzpzaf/05b709719702b9010483a1e4f6241e5a to your computer and use it in GitHub Desktop.
Save zzpzaf/05b709719702b9010483a1e4f6241e5a to your computer and use it in GitHub Desktop.
springboot-external-values1-@ConfigurationProperties-for-@EnableConfigurationProperties
// @Component
@ConfigurationProperties(prefix="set1")
public class DataBaseObjectNames {
private String categoriesTable;
private String itemsTable;
private String vendorsTable;
private String vendorCategoriesTable;
public DataBaseObjectNames(String categoriesTable, String itemsTable, String vendorsTable, String vendorCategoriesTable) {
this.categoriesTable=categoriesTable;
this.itemsTable=itemsTable;
this.vendorsTable=vendorsTable;
this.vendorCategoriesTable=vendorCategoriesTable;
}
public String getCategoriesTable() {
return categoriesTable;
}
// public void setCategoriesTable(String categoriesTable) {
// this.categoriesTable = categoriesTable;
// }
public String getItemsTable() {
return itemsTable;
}
// public void setItemsTable(String itemsTable) {
// this.itemsTable = itemsTable;
// }
public String getVendorsTable() {
return vendorsTable;
}
// public void setVendorsTable(String vendorsTable) {
// this.vendorsTable = vendorsTable;
// }
public String getVendorCategoriesTable() {
return vendorCategoriesTable;
}
// public void setVendorCategoriesTable(String vendorCategoriesTable) {
// this.vendorCategoriesTable = vendorCategoriesTable;
// }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment