摘要:
项目中想给静态变量赋值,但是不成功.一般用法: @Value("${name}") public String name; 对于静态变量是不成功的!使用下面的写法: @Component public class Properties { public static String port; @Va 阅读全文
摘要:
比较日期大小 date1.compareTo(date2) 日期时间差 private static long daysBetween(Date one, Date two) { long difference = (one.getTime()-two.getTime())/86400000; re 阅读全文