tomcat启动时加载applicationContext.xml时,初始化bean id="sessionFactory"的类时,property属性注入的时候有有问题的,检查一下或者把applicationContext.xml这个配置文件贴出来看一下