Error creating bean with name 'staffDao' defined in ServletContext resource [/WEB-INF/classes/applicationContext.xml]: Instantiation of bean failed; nested exception is org.springframework.beans.BeanInstantiationException: Could not instantiate bean class [com.dzj.dao.impl.StaffDaoImpl]: Constructor threw exception; nested exception is java.lang.ExceptionInInitializerError
这个错误主要是因为applicationContext中的
sessionFactory">
红色标记的地方把它写成了大写,跟StaffDaoImpl中的变量名不一致了