If you want to replace sql, just replace it directly. You can do it without regular expression. Normally, the #{user.id} that appears in your sql needs to be replaced with your variable value. If you use regular expression, the performance will be too low.
?
If you want to replace sql, just replace it directly. You can do it without regular expression. Normally, the
#{user.id}
that appears in your sql needs to be replaced with your variable value. If you use regular expression, the performance will be too low.Just splice it together