chenggangpro / reactive-mybatis-support

reactive mybatis support for reactive project using r2dbc
Apache License 2.0
69 stars 15 forks source link

Exception with @R2dbcMapperScan and @Repository #139

Closed cooperlyt closed 9 months ago

cooperlyt commented 1 year ago

@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 {
//...
}

Just remove @Repository, It's worked!

chenggangpro commented 9 months ago

Finished compatible with r2dbc-spi both (0.9.1.RELEASE) version and 1.0.0.RELEASE version. See branch: 3.x