linux
顺便挣钱W先生
不甘命运的码农
展开
-
执行jar脚本时提示nested exception is java.lang.NoClassDefFoundError: Could not initialize class com.xxxx.xx
今天启动脚本的时候,发现脚本执行报错,提示堆栈:log4j:WARN No appenders could be found for logger (org.springframework.context.support.ClassPathXmlApplicationContext).log4j:WARN Please initialize the log4j system properly...原创 2018-12-11 19:25:36 · 14135 阅读 · 0 评论 -
[已解决]N天后的时间戳比当前时间戳小的问题
今天在做一个需求,要求客户只能在到期提前30天续费,于是写了这个判断: if (addedProduct.getExpTime().getTime() > System.currentTimeMillis() + 30 * 24 * 3600 * 1000) { // 只能提前30天续费 t...原创 2019-03-19 15:46:55 · 1391 阅读 · 0 评论