在配置文件中增加After,设置时间,当实际时间到达设置的时间时才会生效
时间的获取可以写一个测试类
public class T2
{
public static void main(String[] args)
{
ZonedDateTime zbj = ZonedDateTime.now();
System.out.println(zbj);
}
}
在配置文件中增加After,设置时间,当实际时间到达设置的时间时才会生效
时间的获取可以写一个测试类
public class T2
{
public static void main(String[] args)
{
ZonedDateTime zbj = ZonedDateTime.now();
System.out.println(zbj);
}
}