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:
- Error creating bean with name ‘sqlsessionfactory’ defined in class path resource
- Error creating bean with name ‘sqlsessionfactory’ defined in class path resource…..
- Error creating bean with name ‘lettuceClientResources‘ defined in class path resource
- Error creating bean with name ‘redisTemplate‘ defined in class path resource [xx/RedisConfig.class]
- Error creating bean with name ‘datasource’ defined in class path resource
- Error creating bean with name ‘requestMappingHandlerAdapter‘ defined in class path resource
- Error creating bean with name ‘feignTargeter‘ defined in class path resource [org/springframework/cl
- Error creating bean with name ‘configurationPropertiesBeans‘ defined in class path resource
- Error creating bean with name ‘entitymanagerfactory’ defined in class path resource
- Error creating bean with name ‘sqlsessionfactory’ appears in SSM framework integration‘
- Solution to the problem of spring boot running test class error creating bean with name ‘serverendpoint exporter’ defined
- Error creating bean with name ‘application‘: Instantiation of bean failed;
- Idea SpringBoot:Error creating bean with name ‘XXXXController‘
- Spring AOP is an error creating bean with name
- org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘use
- org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name
- Springboot error creating bean with name ‘xmlmodelplug’:
- About error creating bean with name ‘xxxxx’: invocation of init method
- Error creating bean with name ‘xxcontroller’
- Error creating bean with name usercontroller appears when springboot starts