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

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

 

错误代码

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

 

 解决办法:给他把值注入

正确代码

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

 

 ..

上一篇:如何快速搭建免费云上MongoDB三副本集群


下一篇:ElementUI的表格中如何用switch开关表示状态?