Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

升级到 2.4.1 xxl-job-core缺少ShardingUtil和XxlJobLogger类,导致代码无法编译 #3523

Open
qq470255867 opened this issue Aug 1, 2024 · 1 comment

Comments

@qq470255867
Copy link

import com.xxl.job.core.log.XxlJobLogger;
import com.xxl.job.core.util.ShardingUtil;
升级到 2.4.1 xxl-job-core缺少ShardingUtil和XxlJobLogger类,导致以下代码无法编译

ShardingUtil.ShardingVO shardingVO = ShardingUtil.getShardingVo();

IJobHandler.SUCCESS
IJobHandler.FAIL

image

@ypforever0719
Copy link

v2.3.0版本更新后,
"ShardingUtil" 组件废弃:改用 "XxlJobHelper.getShardIndex()/getShardTotal();"
"XxlJobLogger" 组件废弃:改用 "XxlJobHelper.log" 进行日志输出;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants