Spring异常:ClassNotFoundException: org.aspectj.weaver.reflect.ReflectionWorld$ReflectionWorldException

出现了这玩意,肯定是少了什么东西

前几天做Spring项目的DEMO的时候,为了简洁 ,手快误删了下面的依赖

    <!--AOP-->
    <dependency>
      <groupId>aopalliance</groupId>
      <artifactId>aopalliance</artifactId>
      <version>1.0</version>
    </dependency>

    <dependency>
      <groupId>org.aspectj</groupId>
      <artifactId>aspectjweaver</artifactId>
      <version>1.8.13</version>
    </dependency>

今天出错之后报了一个Fail to start ApplicationContext,感到莫名其妙,到处找原因

后来看错误报告看到一半,看到Fail to create bean XXXService,以为是Service出了问题,又去找Service的原因

最后5分钟的时候,才想起把报错信息在看一遍,结果立马就定位到了问题

实际上自己也是够傻,应该把报错信息看完再去思考解决方案,结果白白浪费了一个小时

猜你喜欢

转载自blog.csdn.net/fenghuoliuxing990124/article/details/85052334