Error creating bean with name 'dataSource' defined in class path resource [spring/spring-dao.xml]:

  • Error creating bean with name ‘dataSource’ defined in class path resource [spring/spring-dao.xml]: BeanPostProcessor before instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0’: Cannot resolve reference to bean ‘pt1’ while setting bean property ‘pointcut’; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name ‘pt1’: Lookup method resolution failed; nested exception is java.lang.IllegalStateException: Failed to introspect Class [org.springframework.aop.aspectj.AspectJExpressionPointcut] from ClassLoader [sun.misc.Launcher$AppClassLoader@18b4aac2]

  • SSM整合时配置spring事务报错,将事务注释则正常
    原因:缺少aspectjweaver相关jar包,添加坐标问题解决

<dependency>
      <groupId>org.aspectj</groupId>
      <artifactId>aspectjweaver</artifactId>
      <version>1.8.7</version>
</dependency>
发布了94 篇原创文章 · 获赞 0 · 访问量 2097

猜你喜欢

转载自blog.csdn.net/qq_16836791/article/details/105197000