Error creating bean with name 'transactionManager' defined in ServletContext resource XXX

spring & hibernate整合时候 ,并且使用hibernate.cfg.xml文件时回报这个错误,

解决办法,在hibernate.cfg.xml中加入

<property name="connection.provider_class">org.hibernate.connection.C3P0ConnectionProvider</property>

即可

原文地址:https://www.cnblogs.com/may12138/p/8680926.html