Cannot make a static reference to the non-static method xxx() from the type XxxDao
Cannot make a static reference to the non-static method getCRDate() from the type ConflictResolutionDao
这是我第二次犯这个错误了,记性太差…写个博客记录一下:
我的内容大致如下:
@Resource
private ConflictResolutionDao conflictResolutionDao;
ConflictResolutionDao.getCRDate();
看看调用dao方法的时候是不是大写XxxDao.xxx()
改成小写xxxDao.xxx()
conflictResolutionDao.getCRDate();