Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
官方参考文档只有Java代码如下:
CronUtil.schedule("*/2 * * * * *", new Task() { @Override public void execute() { some code } });
在IDEA中自动转换的JAVA代码如下: 报错
CronUtil.schedule("*/2 * * * * *", Task { // do some });