如题
[org.jeecgframework.core.common.exception.MyExceptionHandler]java.lang.NullPointerException
at jeecg.photoManage.service.impl.photo.CompanyServiceImpl.insertCompany(CompanyServiceImpl.java:21)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
CompanyServiceImpl 类
@Service("companyService")
@Transactional
public class CompanyServiceImpl extends CommonServiceImpl implements CompanyServiceI {
private CompanyDao companyDao;
@Arguments("company")
public void insertCompany(CompanyEntity company) {
// TODO Auto-generated method stub
companyDao.insertCompany(company);
}
}
CompanyDao 类
public interface CompanyDao extends MiniDaoSupportHiber<CompanyEntity>{