Error creating bean with name ‘sqlsessionfactory’ defined in ServletContext resource)

Error creating bean with name ‘sqlsessionfactory’ defined in ServletContext resource)

The general error report is as follows

error creating bean with name 'aaaService'......
error creating bean with name 'aaaMapper'......
error creating bean with name 'sqlSessionFactory'defined in ServletContext resource [XXXXXXXX.AAA.class]

From the Internet search a lot of solutions, are not my type. Finally, the problem has been solved;
solution:
reconfigure maven, download the relevant jar package, and then view the project’s pom.xml Whether there are redundant or missing dependencies in. (mine is in pom.xml There is one more dependency in. After deleting, the project will start normally.)


Read More: