OfficeSettings.java 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. package com.suyang.settings;
  2. import org.springframework.beans.factory.annotation.Value;
  3. import org.springframework.context.annotation.Configuration;
  4. @Configuration
  5. public class OfficeSettings {
  6. @Value("${office.store}")
  7. private String store;
  8. @Value("${office.max-size}")
  9. private long maxSize;
  10. @Value("${office.converter-url}")
  11. private String converterUrl;
  12. @Value("${office.tempstore-url}")
  13. private String tempstoreUrl;
  14. @Value("${office.api-url}")
  15. private String apiUrl;
  16. @Value("${office.preloader-url}")
  17. private String preloaderUrl;
  18. @Value("${office.viewed-docs}")
  19. private String viewDocs;
  20. @Value("${office.edited-docs}")
  21. private String editDocs;
  22. @Value("${office.convert-docs}")
  23. private String convertDocs;
  24. public OfficeSettings() {
  25. }
  26. public String getStore() {
  27. return store;
  28. }
  29. public void setStore(String store) {
  30. this.store = store;
  31. }
  32. public long getMaxSize() {
  33. return maxSize;
  34. }
  35. public void setMaxSize(long maxSize) {
  36. this.maxSize = maxSize;
  37. }
  38. public String getConverterUrl() {
  39. return converterUrl;
  40. }
  41. public void setConverterUrl(String converterUrl) {
  42. this.converterUrl = converterUrl;
  43. }
  44. public String getTempstoreUrl() {
  45. return tempstoreUrl;
  46. }
  47. public void setTempstoreUrl(String tempstoreUrl) {
  48. this.tempstoreUrl = tempstoreUrl;
  49. }
  50. public String getApiUrl() {
  51. return apiUrl;
  52. }
  53. public void setApiUrl(String apiUrl) {
  54. this.apiUrl = apiUrl;
  55. }
  56. public String getPreloaderUrl() {
  57. return preloaderUrl;
  58. }
  59. public void setPreloaderUrl(String preloaderUrl) {
  60. this.preloaderUrl = preloaderUrl;
  61. }
  62. public String getViewDocs() {
  63. return viewDocs;
  64. }
  65. public void setViewDocs(String viewDocs) {
  66. this.viewDocs = viewDocs;
  67. }
  68. public String getEditDocs() {
  69. return editDocs;
  70. }
  71. public void setEditDocs(String editDocs) {
  72. this.editDocs = editDocs;
  73. }
  74. public String getConvertDocs() {
  75. return convertDocs;
  76. }
  77. public void setConvertDocs(String convertDocs) {
  78. this.convertDocs = convertDocs;
  79. }
  80. }