ssm——容器创建注入失败
ssm框架搭建好后,
报错 org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'itemCatController': Injection of resource dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException .......等
查看了网上的资料,大多都是说注解@Service @Controller没写或者mapper.xml配置问题、扫描包等等,都不适用于我的问题。
后来检查了一下配置文件,发现是spring和mybatis的整合配置文件放错了地方,与web.xml中contextConfigLocation设置的不符,导致无法读取整合配置文件。