![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java
文章平均质量分 50
crespo1985ban
这个作者很懒,什么都没留下…
展开
-
获取调度下一次触发时间
需求:1、任务关联调度后,在页面上显示下一次执行(即调度的触发)时间。 技术约束: 1、关联时,使用的是CronTrigger。 1、业务中,只有将调度与任务关联时,才创建CronTrigg业务中, 解决方案1:从Scheduler中获取CronTrigger,然后调用getNextFireTime(); 问题:返回的时间有时候不准确。 ...原创 2011-09-14 15:50:01 · 744 阅读 · 0 评论 -
Java迷题:等于,还是不等于?
等于还是不等于?看来看下面的一段代码: 代码片段1public static void main(final String[] args) { Integer a = new Integer(100); Integer b = 100; System.out.println(a == b); } 这段代码的输出是什么?相信很多人...2012-01-30 15:38:01 · 181 阅读 · 0 评论 -
org.xml.sax.SAXParseException: Content is not allowed in trailing section. .
总结一下,这个问题主要出现的原因有两点。 1、XML内容不正确,比如多个空格,换行等等。需要仔细排查;2、使用Stream读取流文件不正确,详细如下: 读写文件时,一般采用的是每次从inputStream中read 一个有固定大小的byte array时,这时候在 byte[] array = new byte[1024]; BufferedInputStr...2012-03-26 14:32:58 · 346 阅读 · 0 评论