Spring Boot Error

java.lang.ClassNotFoundException: kotlin.reflect.KotlinReflectionInternalError

注释旧的库,使用更新版本库,可以解决问题

1
2
3
4
5
<dependency>
<groupId>com.fasterxml.jackson.module</groupId>
<artifactId>jackson-module-kotlin</artifactId>
<version>2.9.4.1</version>
</dependency>

because it is a JDK dynamic proxy that xxxxx

在单元测试中出现该问题

1
2
@EnableAspectJAutoProxy(proxyTargetClass = true)
class AccountApplication