Class CaptchaConfigurationProperties

java.lang.Object
tech.riemann.nif.starter.web.CaptchaConfigurationProperties

@ConfigurationProperties("nif.captcha") public class CaptchaConfigurationProperties extends Object
验证码自动配置属性

前缀 nif.captcha:

  • enabled: 是否启用验证码自动配置(默认 true,无破坏性组件引入即提供 bean)
  • length: 验证码长度(默认 4)
  • http-only: Cookie HttpOnly(默认 true)
  • secure: Cookie Secure(默认 false——纯 HTTP 部署可用;HTTPS 请求 render 时自动升级)
  • cookie-path: Cookie 路径(默认 /)
  • interference-lines: 干扰线条数(默认 1023)
Author:
Kerbores(kerbores@riemann.tech)
  • Constructor Details

    • CaptchaConfigurationProperties

      public CaptchaConfigurationProperties()