1.错误码:Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: 'sessionFactory' or 'hibernateTemplate' is required
原因: 在Spring 配置文件applicationContext.xml中Dao中需要配置sessionFactory
解决办法:配置sessionFactory
2.错误码:HTTP Status 500 - Cannot open connection; nested exception is org.hibernate.exception.SQLGrammarException: Cannot open connection
原因:在配置文件applicationContext.xml中数据库配置有错误,数据库url,登陆账号密码等。
解决办法:数据库的连接信息修正