You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

55 lines
1.1 KiB

2 years ago
​
​
2 years ago
2 years ago
​
​
2 years ago
2 years ago
​
​
​
​
2 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
2 years ago
  1. package com.gcc.erppostdata.config;
  2. import org.springframework.beans.factory.annotation.Value;
  3. import org.springframework.boot.context.properties.ConfigurationProperties;
  4. import org.springframework.context.annotation.Configuration;
  5. @Configuration
  6. @ConfigurationProperties(prefix = "app")
  7. public class AppConfig {
  8. private String erpUrl;
  9. private String username;
  10. private String password;
  11. private String petDb;
  12. private String cmhDb;
  13. public String getErpUrl() {
  14. return erpUrl;
  15. }
  16. public void setErpUrl(String erpUrl) {
  17. this.erpUrl = erpUrl;
  18. }
  19. public String getUsername() {
  20. return username;
  21. }
  22. public void setUsername(String username) {
  23. this.username = username;
  24. }
  25. public String getPassword() {
  26. return password;
  27. }
  28. public void setPassword(String password) {
  29. this.password = password;
  30. }
  31. public String getPetDb() {
  32. return petDb;
  33. }
  34. public void setPetDb(String petDb) {
  35. this.petDb = petDb;
  36. }
  37. public String getCmhDb() {
  38. return cmhDb;
  39. }
  40. public void setCmhDb(String cmhDb) {
  41. this.cmhDb = cmhDb;
  42. }
  43. }