whyclxw
1 天以前 add5c816a5281cf6b1df4a0988e8b3a0c2b59bee
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package com.whyc.controller;
 
import org.springframework.web.bind.WebDataBinder;
import org.springframework.web.bind.annotation.InitBinder;
import org.springframework.web.bind.annotation.RestController;
 
@RestController
public class BaseController {
 
    @InitBinder
    public void initBinder(WebDataBinder binder) {
        binder.setDisallowedFields("fieldForCheck");
    }
}