严重: Exception sending context initialized event to listener instance of class [org.springframework.w

你的名字 2022-06-03 03:51 250阅读 0赞

错误信息

  1. 严重: Exception sending context initialized event to listener instance of class [org.springframework.web.context.ContextLoaderListener]
  2. org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'customerAction' defined in class path resource [applicationContext-action.xml]: Cannot resolve reference to bean 'customerService' while setting bean property 'customerService'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'customerService' defined in class path resource [applicationContext-service.xml]: Cannot resolve reference to bean 'customerDao' while setting bean property 'customerDao'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'customerDao' defined in class path resource [applicationContext-dao.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext-dao.xml]: Cannot resolve reference to bean 'dataSource' while setting bean property 'dataSource'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [applicationContext-dao.xml]: Initialization of bean failed; nested exception is java.lang.IllegalArgumentException: Pointcut is not well-formed: expecting 'name pattern' at character position 40
  3. execution(*com.wds.ssh.service.impl.*.*(..))
  4. ^
  5. at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359)
  6. at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
  7. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1481)
  8. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1226)
  9. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543)
  10. at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
  11. at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
  12. at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
  13. at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
  14. at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
  15. at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772)
  16. at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:839)
  17. at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:538)
  18. at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:446)
  19. at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:328)
  20. at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
  21. at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4745)
  22. at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5207)
  23. at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
  24. at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1419)
  25. at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1409)
  26. at java.util.concurrent.FutureTask.run(Unknown Source)
  27. at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
  28. at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
  29. at java.lang.Thread.run(Unknown Source)

错误原因

在配置AOP时,切点表达式出错

解决方法

这里写图片描述

发表评论

表情:
评论列表 (有 0 条评论,250人围观)

还没有评论,来说两句吧...

相关阅读