Bean Spring container creates failures (Spring Web)

 

Creating Bean encountered failures in the Spring project.

严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener
org.springframework.beans.factory.BeanCreationException: 
Error creating bean with name
'brandServiceImpl' defined in file BrandServiceImpl.class

 

Moreover, web.xml file has profile path specification applicationContext * .xml.

  <context-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>classpath*:applicationContext*.xml</param-value>
  </context-param>
  <listener>
    <listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
  </listener>

 

Actually see the file name

 

 So the applicationContext * .xml into applicationContext -. * Xml, so matching a stronger effect.

 

Run again, even normal.

 

Guess you like

Origin www.cnblogs.com/wuyicode/p/11618952.html
Recommended