RuoYiConfig.java 592 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. package com.ruoyi.common.config;
  2. import lombok.Data;
  3. import org.springframework.boot.context.properties.ConfigurationProperties;
  4. import org.springframework.stereotype.Component;
  5. /**
  6. * 读取项目相关配置
  7. *
  8. * @author Lion Li
  9. */
  10. @Data
  11. @Component
  12. @ConfigurationProperties(prefix = "ruoyi")
  13. public class RuoYiConfig {
  14. /**
  15. * 项目名称
  16. */
  17. private String name;
  18. /**
  19. * 版本
  20. */
  21. private String version;
  22. /**
  23. * 版权年份
  24. */
  25. private String copyrightYear;
  26. /**
  27. * 缓存懒加载
  28. */
  29. private boolean cacheLazy;
  30. }