Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

com.linkkou.mybatis.log.LogInterceptor.replaceFirst中使用String.replaceFirst字符串含特殊字符$会报错java.lang.IllegalArgumentException: Illegal group reference #142

Open
li1135759862 opened this issue May 6, 2024 · 0 comments

Comments

@li1135759862
Copy link

java.lang.IllegalArgumentException: Illegal group reference
at java.base/java.util.regex.Matcher.appendExpandedReplacement(Matcher.java:1067)
at java.base/java.util.regex.Matcher.appendReplacement(Matcher.java:997)
at java.base/java.util.regex.Matcher.replaceFirst(Matcher.java:1407)
at java.base/java.lang.String.replaceFirst(String.java:2895)
at com.linkkou.mybatis.log.LogInterceptor.replaceFirst(LogInterceptor.java:152)
at com.linkkou.mybatis.log.LogInterceptor.getCompleteSql(LogInterceptor.java:123)
at com.linkkou.mybatis.log.LogInterceptor.intercept(LogInterceptor.java:78)
at org.apache.ibatis.plugin.Plugin.invoke(Plugin.java:59)
at jdk.proxy2/jdk.proxy2.$Proxy78.update(Unknown Source)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant