Java Web容器启动时,SessionFactory注入失败的问题

包结构如下:
图片说明
Spring配置如下:
图片说明
UserDAO代码如下:
图片说明
Tomcat一启动,报错如下:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDao': Injection of
resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'sessionFactory' defined in class path resource [applicationContext.xml]: Invocation of
init method failed; nested exception is java.lang.NullPointerException

applicationContext.xml的配置看看有问题没有,如果没有,那就是dao接受的问题
我是hibernate:




com.model





org.hibernate.dialect.MySQLDialect

true
true
update


看看你的dataSource。看看你的User.hbm.xml