【单测修复】system:AdminAuthServiceImplTest
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user