No unique bean of type [javax.persistence.EntityManagerFactory] is defined
来源:互联网 发布:自动化交易编程设计 编辑:程序博客网 时间:2024/05/13 12:37
今天运行以前同事交接给我的老项目,是用struts2+spring+jpa搭建的,平常用ssh较多,jpa使用的较少,所以就遇到问题。
No unique bean of type [javax.persistence.EntityManagerFactory] is defined: expected single bean but found 0
最后的解决方法就是在web.xml中配置数据源的路径。因为没有配置数据源,也就没有定义EntityManagerFactory,所以也就不可能有bean。
阅读全文
0 0
- No unique bean of type [javax.persistence.EntityManagerFactory] is defined
- No unique bean of type [ *.service.*Service] is defined
- No unique bean of type is defined: expected single bean but found 0
- No qualifying bean of type [] is defined
- spring boot+mybatis 多数据源报错 No qualifying bean of type [javax.sql.DataSource] is defined:
- No unique bean of type [net.shougongfang.action.paymoney.AlipayPayMoneyReturnObj] is defined: Unsat
- No unique bean of type [com.yuanv.backstage.dao.SysUserDao] is defined: expected single matching bea
- No qualifying bean of type xxxxx is defined
- weblogic下用@Resource出现No unique bean of type [cn.xx.dao.QueryDAO] is defined的解决办法
- Spring两个数据源配置在容器启动出错,No unique bean of type [org.springframework.jdbc.core.JdbcTemplate] is defined:
- No unique bean of type
- No unique bean of type
- No qualifying bean of type [javax.persistence.EntityManage] 异常问题的解决
- No qualifying bean of type is defined: expected single matching bean but found 2
- spring启动时报错No qualifying bean of type【bean 】 is defined
- weblogic下用@Resource出现No unique bean of type [cn.xx.dao.QueryDAO] is defined的解决办法 原创 2014年06月04日 16:1
- spring exception--No unique bean of type
- BeanCreationException: No unique bean of type
- Spring AOP动态代理原理与实现方式
- JavaWeb之JDBC(二)采用读取配置文件方式编写JDBC的工具类,获取数据库的连接
- 1.S5PV210定时器系统概述和时钟结构框图分析
- IOS 下划线随视图移动+自动轮播图功能
- 初识javaScript
- No unique bean of type [javax.persistence.EntityManagerFactory] is defined
- 数人云|20种终极工具,为你的Docker搭建安全防火墙
- Linux修改文件权限学习笔记
- SmsManager smsManager = SmsManager.getDefault(); 是否被弃用
- Designing a VuMark in Adobe Illustrator 在Adobe Illustrator中设计VuMark
- 用Java编写不规则数组
- MySQL学习续篇--01
- 数据导出EXCEL
- http响应总结:常见http响应错误总结