Problem Description:
Red when starter starts springboot:
Error creating bean with name ‘indexController’
Error creating bean named ‘indexcontroller’
Error in bean of ‘sqlsessionfactory’: failed to instantiate bean through factory method
Problem solving:
According to the error report, it can be seen that the mapper layer is not injected and the mapper instance cannot be found. First, check the springboot core configuration file application.yml. In the mybatis configuration structure, the bean is not configured in the custom scan package type aliases package. Just reconfigure it (the package name depends on the individual)
com.crm.bean;
Read More:
- Error creating bean with name usercontroller appears when springboot starts
- Springboot error creating bean with name ‘xmlmodelplug’:
- Springboot startup exception: error creating bean with name ‘permissioncontroller’
- An error is reported when springboot starts: error creating bean with name ‘XXXX’
- Error creating bean with name ‘application‘: Instantiation of bean failed;
- How to solve the problem of artifact contains illegal characters when creating springboot project with idea
- Springboot project startup exception – required a single bean, but 2 were found
- Error creating bean with name ‘sqlsessionfactory’ defined in ServletContext resource)
- Error creating bean with name ‘redissonclient’:
- Error creating bean with name ‘helloController‘: Injection of autowired dependencies failed;
- org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name
- Error creating bean with name xxxxxx : unsatisfied dependency…
- Error creating bean with name ‘enablererediskeyspacenotificationsinitializer’
- Error creating bean with name ‘sqlsessionfactory’ defined in class path resource
- org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘use
- Error creating bean with name ‘xxcontroller’
- Error creating bean with name ‘redisTemplate‘ defined in class path resource [xx/RedisConfig.class]
- Error creating bean with name ‘lettuceClientResources‘ defined in class path resource
- Error creating bean with name ‘sqlsessionfactory’ defined in class path resource…..
- Error creating bean with name ‘datasource’ defined in class path resource