Last active
June 28, 2023 08:19
-
-
Save zzpzaf/05b709719702b9010483a1e4f6241e5a to your computer and use it in GitHub Desktop.
springboot-external-values1-@ConfigurationProperties-for-@EnableConfigurationProperties
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
// @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