更新于 2021-08-11
1.使用InitBinder注解
@InitBinder public void initBinder(WebDataBinder binder) { binder.setDisallowedFields(new String[]{"admin""ts"}); }