错误:nested exception is java.lang.NoClassDefFoundError

Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: org/aspectj/lang/annotation/Pointcut

异常如下:

错误:nested exception is java.lang.NoClassDefFoundError

解决方法

1、首先运行mvn -dependency:tree
– 并没又发现冲突,更奇怪的是control+F aspectj 并没有发现这个包,很明显忙的冲昏了脑子,要么就是快要下班低血糖。
2、马上在依赖里加上,写上注释。

<dependency>
	<groupId>org.springframework.boot</groupId>
 	<artifactId>spring-boot-starter-aop</artifactId>
</dependency>