其他分享
首页 > 其他分享> > Error creating bean with name 'transactionManager' defined in class path resource [spring-

Error creating bean with name 'transactionManager' defined in class path resource [spring-

作者:互联网

错误

Error creating bean with name 'transactionManager' defined in class path resource [spring-dao.xml]:
Invocation of init method failed; nested exception is java.lang.IllegalArgumentException: Property 'dataSource' is required

原因:配合事物的时候,没有注入值

 

错误代码

 

 解决办法:给他把值注入

正确代码

 

 ..

标签:xml,resource,creating,defined,spring,dao,bean
来源: https://www.cnblogs.com/dbconfig1/p/15611092.html