严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userController': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private cn.sxt.service.UserService cn.sxt.controller.UserController.userService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userService': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private cn.sxt.dao.UserDao cn.sxt.service.impl.UserServiceImpl.userDao; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userDao' defined in file [D:\workspace2my.metadata.me_tcat\webapps\ssm\WEB-INF\classes\cn\sxt\dao\impl\UserDaoImpl.class]: Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Property 'sqlSessionFactory' or 'sqlSessionTemplate' are required
谁能翻译下,看看这个到底是哪里的错误啊,搞了两天了,到底是哪个类或者是哪个配置文件有问题啊?英语差看不懂
百度翻译一下不就行了:
userDao初始化错误,需要属性“sqlsessionFactory”或“sqlsessionTemplate”