@R2dbcMapperScan include a @Repository throws exception:
Caused by: java.lang.ClassNotFoundException: net.bytebuddy.renamed.java.lang.Object$ByteBuddy$hogupVqa at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:606) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:168) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
@R2dbcMapperScan("xxx.r2dbc.mapper")
public class WorkerIdAutoConfigure {
//...
}
@Repository
public interface R2dbcWorkerNodeMapper {
//...
}
@R2dbcMapperScan include a @Repository throws exception:
Caused by: java.lang.ClassNotFoundException: net.bytebuddy.renamed.java.lang.Object$ByteBuddy$hogupVqa at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:606) at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:168) at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
Just remove @Repository, It's worked!