Java110Properties.java 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. package com.java110.config.properties.code;
  2. import org.springframework.boot.context.properties.ConfigurationProperties;
  3. import org.springframework.context.annotation.PropertySource;
  4. import org.springframework.stereotype.Component;
  5. /**
  6. * Created by wuxw on 2017/7/25.
  7. */
  8. @Component
  9. @ConfigurationProperties(prefix = "java110")
  10. @PropertySource("classpath:java110.properties")
  11. public class Java110Properties {
  12. private String mappingPath;
  13. private String wxAppId;
  14. private String wxAppSecret;
  15. private boolean autoReloadComponent = false;
  16. private String ftpServer;
  17. private int ftpPort;
  18. private String ftpUserName;
  19. private String ftpUserPassword;
  20. private String ftpPath;
  21. private String testSwitch;
  22. public String getMappingPath() {
  23. return mappingPath;
  24. }
  25. public void setMappingPath(String mappingPath) {
  26. this.mappingPath = mappingPath;
  27. }
  28. public String getWxAppId() {
  29. return wxAppId;
  30. }
  31. public void setWxAppId(String wxAppId) {
  32. this.wxAppId = wxAppId;
  33. }
  34. public String getWxAppSecret() {
  35. return wxAppSecret;
  36. }
  37. public void setWxAppSecret(String wxAppSecret) {
  38. this.wxAppSecret = wxAppSecret;
  39. }
  40. public boolean getAutoReloadComponent() {
  41. return autoReloadComponent;
  42. }
  43. public void setAutoReloadComponent(boolean autoReloadComponent) {
  44. this.autoReloadComponent = autoReloadComponent;
  45. }
  46. public String getFtpServer() {
  47. return ftpServer;
  48. }
  49. public void setFtpServer(String ftpServer) {
  50. this.ftpServer = ftpServer;
  51. }
  52. public String getFtpUserName() {
  53. return ftpUserName;
  54. }
  55. public void setFtpUserName(String ftpUserName) {
  56. this.ftpUserName = ftpUserName;
  57. }
  58. public String getFtpUserPassword() {
  59. return ftpUserPassword;
  60. }
  61. public void setFtpUserPassword(String ftpUserPassword) {
  62. this.ftpUserPassword = ftpUserPassword;
  63. }
  64. public void setFtpPort(int ftpPort) {
  65. this.ftpPort = ftpPort;
  66. }
  67. public int getFtpPort() {
  68. return ftpPort;
  69. }
  70. public String getFtpPath() {
  71. return ftpPath;
  72. }
  73. public void setFtpPath(String ftpPath) {
  74. this.ftpPath = ftpPath;
  75. }
  76. public String getTestSwitch() {
  77. return testSwitch;
  78. }
  79. public void setTestSwitch(String testSwitch) {
  80. this.testSwitch = testSwitch;
  81. }
  82. }