只需要导入具体的包路径.类名.方法名或静态变量
例如 import static me.zhengjie.utils.ColUtil.getConfig;
import static me.zhengjie.utils.ColUtil.getConfig;
import static me.zhengjie.utils.GenUtil.PK;
@Data
public class LoginProperties {
public Captcha getCaptcha() {
getConfig();
String a = PK;
if (Objects.isNull(loginCode)) {
loginCode = new LoginCode();
if (Objects.isNull(loginCode.getCodeType())) {
loginCode.setCodeType(LoginCodeEnum.arithmetic);
}
}
return switchCaptcha(loginCode);
}
}
其中getConfig()是ColUtil类下面的静态方法,PK是ColUtil类下面的静态变量