Tag Archives: Error creating bean with name ‘transactionManager’ defined in class path resource [springdao.xml]

[Solved] Error creating bean with name ‘transactionManager’ defined in class path resource [spring-dao.xml]

error

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

Reason: when matching things, there is no injected value

error code

Solution: inject value into him

Correct code