diff --git a/mybatis-r2dbc-generator/src/main/java/pro/chenggang/project/reactive/mybatis/support/generator/support/GeneratedModelCustomizer.java b/mybatis-r2dbc-generator/src/main/java/pro/chenggang/project/reactive/mybatis/support/generator/support/GeneratedModelCustomizer.java index 94a523db..3719aeb8 100644 --- a/mybatis-r2dbc-generator/src/main/java/pro/chenggang/project/reactive/mybatis/support/generator/support/GeneratedModelCustomizer.java +++ b/mybatis-r2dbc-generator/src/main/java/pro/chenggang/project/reactive/mybatis/support/generator/support/GeneratedModelCustomizer.java @@ -84,7 +84,7 @@ public void customizeLombok(TopLevelClass topLevelClass, IntrospectedTable intro String lombokImport; String lombokAnnotation; if(lombokAnnotationName.contains("(")){ - String pureAnnotation = StringUtils.substringBetween(lombokAnnotationName, ".", "("); + String pureAnnotation = StringUtils.substringBefore(StringUtils.substringAfterLast(StringUtils.substringBefore(lombokAnnotationName,"("),"."), "("); lombokImport = StringUtils.substringBefore(lombokAnnotationName,"("); lombokAnnotation = StringUtils.substringAfter(lombokAnnotationName, StringUtils.substringBeforeLast(lombokImport, pureAnnotation)