if (!StrUtils.startsWithIgnoreCase(trimedSql, "select ")) 这句判断,会导致将select语句单独写到一行的这类语句校验失败。 如: select t.field1, t.field2, ... from table t xxx 这个select语句并不是以select+空格结尾,而是以select+换行符结尾,这样会导致验证失败
if (!StrUtils.startsWithIgnoreCase(trimedSql, "select ")) 这句判断,会导致将select语句单独写到一行的这类语句校验失败。
如:
select
t.field1,
t.field2,
...
from table t xxx
这个select语句并不是以select+空格结尾,而是以select+换行符结尾,这样会导致验证失败