在做Spring相关项目的时候,居然被这个bug卡了好久 到网上看别人博客也是找了好多好多,浏览器都开了好几个… 是在没办法了 后面找组长帮忙 发现原来是自己给List赋了一个null的初值 比如:
List<TermAllRes> termAllResList = null;
应该改为:
List<TermAllRes> termAllResList = new ArrayList<TermAllRes>()
在做Spring相关项目的时候,居然被这个bug卡了好久 到网上看别人博客也是找了好多好多,浏览器都开了好几个… 是在没办法了 后面找组长帮忙 发现原来是自己给List赋了一个null的初值 比如:
List<TermAllRes> termAllResList = null;
应该改为:
List<TermAllRes> termAllResList = new ArrayList<TermAllRes>()