问题

1.@SuppressWarnings注解--作用:用于抑制编译器产生警告信息。

跟它类似的还有三个:???@Transactional、@Component、@Autowired

2.if (null != bean.getFilerecords())这种形式为何不是

  if ( bean.getFilerecords()!=null)呢有何求别??

3./**
  * 缓存常用的SimpleDateFormat;
  */
 private static final HashMap<String, SimpleDateFormat> formatMap = new HashMap<String, SimpleDateFormat>();

为何不是/**

 private static final 【Map】<String, SimpleDateFormat> formatMap = new HashMap<String, SimpleDateFormat>();???

4.for里的内容分别指

List<FormBorrowsl> sls = formBorrowslMapper.listAll(view1);
    if (sls != null && sls.size() > 0) {
    for (FormBorrowsl sl : sls) {

总结很重要哦 方法得当,坚持会有奇迹哦
原文地址:https://www.cnblogs.com/sunyuhuan/p/6929338.html