Today, when we learn to integrate SSM projects to test whether the framework is available, we will report the above error as soon as we run Maven’s Tomcat,
At the beginning, I thought it was because the service layer annotation was not well written. After checking, I found that there was no error. Finally, in the web.xml It is found that the following param value is wrongly written in the file, and the application in ApplicationContext – *. XML is missing an n.
≪! — load the spring container — & gt;
& lt; context param & gt;
& lt; param name & gt; contextconfiglocation & lt; & param name & gt;
& lt; param value & gt; classpath:spring/applicationContext- *.xml</param-value>
</context-param>
And less in the transaction aspect
< aop:config>
< aop:advisor advice-ref= “txAdvice”
pointcut=”execution(* cn.itcast .e3 mall.service ..*.*(..))” />
</ aop:config>
Spent a lot of time, finally solved, hope to help you!
Read More:
- Error creating bean with name ‘application‘: Instantiation of bean failed;
- Error creating bean with name ‘sqlsessionfactory’ defined in class path resource
- org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name
- Spring AOP is an error creating bean with name
- Error creating bean with name ‘enablererediskeyspacenotificationsinitializer’
- Error creating bean with name ‘redissonclient’:
- Error creating bean with name usercontroller appears when springboot starts
- Error creating bean with name ‘helloController‘: Injection of autowired dependencies failed;
- Error creating bean with name ‘requestMappingHandlerAdapter‘ defined in class path resource
- Error creating bean with name ‘sqlsessionfactory’ defined in ServletContext resource)
- About error creating bean with name ‘xxxxx’: invocation of init method
- Error creating bean with name ‘datasource’ defined in class path resource
- elasticsearch NoClassDefFoundError error creating RestHighLevelClient bean
- Springboot error creating bean with name ‘xmlmodelplug’:
- Error creating bean with name ‘redisTemplate‘ defined in class path resource [xx/RedisConfig.class]
- Error creating bean with name ‘configurationPropertiesBeans‘ defined in class path resource
- Idea SpringBoot:Error creating bean with name ‘XXXXController‘
- Error creating bean with name ‘org.springframework.security.oauth2.config.annotation.web.configurati
- Error creating bean with name xxxxxx : unsatisfied dependency…
- org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘serviceImpl‘