【单测修复】system:AdminAuthServiceImplTest

This commit is contained in:
YunaiV
2025-01-25 10:09:39 +08:00
parent 534c64709f
commit 06634a4265
2 changed files with 5 additions and 24 deletions

View File

@@ -30,6 +30,7 @@ import com.xingyuv.captcha.model.vo.CaptchaVO;
import com.xingyuv.captcha.service.CaptchaService;
import jakarta.annotation.Resource;
import jakarta.validation.Validator;
import lombok.Setter;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;
@@ -71,6 +72,7 @@ public class AdminAuthServiceImpl implements AdminAuthService {
* 验证码的开关,默认为 true
*/
@Value("${yudao.captcha.enable:true}")
@Setter // 为了单测:开启或者关闭验证码
private Boolean captchaEnable;
@Override