TokenProperties.java 554 B

12345678910111213141516171819202122232425262728293031
  1. package com.ruoyi.common.properties;
  2. import lombok.Data;
  3. import org.springframework.boot.context.properties.ConfigurationProperties;
  4. import org.springframework.stereotype.Component;
  5. /**
  6. * token 配置属性
  7. *
  8. * @author Lion Li
  9. */
  10. @Data
  11. @Component
  12. @ConfigurationProperties(prefix = "token")
  13. public class TokenProperties {
  14. /**
  15. * 令牌自定义标识
  16. */
  17. private String header;
  18. /**
  19. * 令牌秘钥
  20. */
  21. private String secret;
  22. /**
  23. * 令牌有效期(默认30分钟)
  24. */
  25. private int expireTime;
  26. }