ssm整合出错 帮帮我大佬们

超级菜芽人 2017-08-14 09:23:30
错误:Error creating bean with name 'ClassPoServiceIm': Injection of autowired dependencies failed;
nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private ssm.mapper.dao.ClassPoMapperCustom ssm.service.ClassPoServiceIm.ClassPoMapperCustom;
nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'classPoMapperCustom' defined in file [D:\tomcat8.5.16\webapps\SSM\WEB-INF\classes\ssm\mapper\dao\ClassPoMapperCustom.class]: Cannot resolve reference to bean 'sqlSessionFactory' while setting bean property 'sqlSessionFactory';
nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'sqlSessionFactory' is defined

目录结构
web.xml

springmvc.xml
service
Controller
application

...全文
152 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
nikyotensai 2017-08-14
  • 打赏
  • 举报
回复
application和Controller配置
李德胜1995 2017-08-14
  • 打赏
  • 举报
回复
sqlSessionFactory上面大写下面小写。。。。

67,512

社区成员

发帖
与我相关
我的任务
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
  • Java EE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧