2018/9/15 java spring

1 使用autowired注解,不要忘了给所注解的成员变量的原来的那个类加@Component.

2 获取系统当前时间的两句程序:
SimpleDateFormat df = new SimpleDateFormat(“yyyy-MM-dd HH:mm:ss “);
System.out.println(df.format(System.currentTimeMillis()));

猜你喜欢

转载自blog.csdn.net/wjl960827/article/details/82718745
今日推荐