- 博客(3)
- 收藏
- 关注
原创 string 数组怎么定义
string数组的定义有三种:String []arr = new String[10];String arr[] = {“张三”,“李四”};String[] arr = new String[10];
2019-08-01 11:07:09
4088
原创 SpringBoot job定时器
首先在你的启动类加上@EnableSchedduling注解@Scheduled(cron = “0 0/10 8,20 * * ? “)public void start(){//System.out.println(”=分配===”);}在方法前加上 @Scheduled注解以及cron表达式,可以配置你需要在什么时候启动这个定时器,隔多久启动一次常用的cron表达式...
2019-07-25 14:45:26
1493
原创 关于时间比较
时间的比较,只比较时间,忽略年月日 //获取当前时间 Date date = new Date(); //只显示出时分秒 DateFormat df = DateFormat.getTimeInstance(); String d = df.format(date); SimpleDateFormat for...
2019-07-25 14:39:27
270
1
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人