@Documented @Target(value=TYPE) @Retention(value=RUNTIME) @Repeatable(value=LogExcludeLevel.LogExcludeLevels.class) public @interface LogExcludeLevel
@LogExcludeLevel(levels = {"FINEST"}, keys = {"SET username ="}) public class UserRecord { public int userid; public String username = ""; } 这样当调用DataSource对UserRecord对象进行操作时,拼接的SQL语句含"SET username ="字样的都会在FINEST日志级别过滤掉
详情见: https://redkale.org