diff --git a/mybatis-flex-processor/src/main/java/com/mybatisflex/processor/util/StrUtil.java b/mybatis-flex-processor/src/main/java/com/mybatisflex/processor/util/StrUtil.java index e314eba9..8774f1b4 100644 --- a/mybatis-flex-processor/src/main/java/com/mybatisflex/processor/util/StrUtil.java +++ b/mybatis-flex-processor/src/main/java/com/mybatisflex/processor/util/StrUtil.java @@ -114,9 +114,9 @@ public class StrUtil { public static boolean isGetterMethod(String methodName, String property) { if (methodName.startsWith("get") && methodName.length() > 3) { - return firstCharToUpperCase(property).equals(methodName.substring(3)); + return firstCharToUpperCase(property).concat("()").equals(methodName.substring(3)); } else if (methodName.startsWith("is") && methodName.length() > 2) { - return firstCharToUpperCase(property).equals(methodName.substring(2)); + return firstCharToUpperCase(property).concat("()").equals(methodName.substring(2)); } else { return false; }