RuoYiConfig.java 943 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. package com.ruoyi.framework.config;
  2. import org.springframework.boot.context.properties.ConfigurationProperties;
  3. import org.springframework.stereotype.Component;
  4. /**
  5. * 读取项目相关配置
  6. *
  7. * @author ruoyi
  8. */
  9. @Component
  10. @ConfigurationProperties(prefix = "ruoyi")
  11. public class RuoYiConfig
  12. {
  13. /** 项目名称 */
  14. private String name;
  15. /** 版本 */
  16. private String version;
  17. /** 版权年份 */
  18. private String copyrightYear;
  19. public String getName()
  20. {
  21. return name;
  22. }
  23. public void setName(String name)
  24. {
  25. this.name = name;
  26. }
  27. public String getVersion()
  28. {
  29. return version;
  30. }
  31. public void setVersion(String version)
  32. {
  33. this.version = version;
  34. }
  35. public String getCopyrightYear()
  36. {
  37. return copyrightYear;
  38. }
  39. public void setCopyrightYear(String copyrightYear)
  40. {
  41. this.copyrightYear = copyrightYear;
  42. }
  43. }