CaptchaProperties.java 933 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. package com.ruoyi.gateway.config.properties;
  2. import org.springframework.boot.context.properties.ConfigurationProperties;
  3. import org.springframework.cloud.context.config.annotation.RefreshScope;
  4. import org.springframework.context.annotation.Configuration;
  5. /**
  6. * 验证码配置
  7. *
  8. * @author ruoyi
  9. */
  10. @Configuration
  11. @RefreshScope
  12. @ConfigurationProperties(prefix = "security.captcha")
  13. public class CaptchaProperties
  14. {
  15. /**
  16. * 验证码开关
  17. */
  18. private Boolean enabled;
  19. /**
  20. * 验证码类型(math 数组计算 char 字符)
  21. */
  22. private String type;
  23. public Boolean getEnabled()
  24. {
  25. return enabled;
  26. }
  27. public void setEnabled(Boolean enabled)
  28. {
  29. this.enabled = enabled;
  30. }
  31. public String getType()
  32. {
  33. return type;
  34. }
  35. public void setType(String type)
  36. {
  37. this.type = type;
  38. }
  39. }