captcha
captcha copied to clipboard
如何优雅的重写 ClickWordCaptchaServiceImpl#get()
trafficstars
目前重写后,给新类加@Component,会导致 com.anji.captcha.config.AjCaptchaServiceAutoConfiguration#captchaService 不执行,因为它有 @ConditionalOnMissingBean。
如何优雅的干这件事呢,因为我想自定义验证码,比如透明度啥的
说的我不是很理解,进微信群,说一下你的详细想法
@haytoo1 重写后的类 通过 JAVA SPI方式实例化,了解一下相关配置,参考springmvc部分。 不需要加@component
@haytoo1
