代码扫描问题解决
This commit is contained in:
@@ -9,8 +9,10 @@ import com.sunyard.chsm.model.R;
|
||||
import com.sunyard.chsm.service.DeviceService;
|
||||
import com.sunyard.ssp.common.annotation.AuditControllerLog;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.springframework.web.bind.WebDataBinder;
|
||||
import org.springframework.web.bind.annotation.DeleteMapping;
|
||||
import org.springframework.web.bind.annotation.GetMapping;
|
||||
import org.springframework.web.bind.annotation.InitBinder;
|
||||
import org.springframework.web.bind.annotation.PostMapping;
|
||||
import org.springframework.web.bind.annotation.PutMapping;
|
||||
import org.springframework.web.bind.annotation.RequestBody;
|
||||
@@ -37,6 +39,11 @@ public class DeviceController {
|
||||
@Resource
|
||||
private DeviceService deviceService;
|
||||
|
||||
@InitBinder
|
||||
public void initBinder(WebDataBinder binder) {
|
||||
binder.setDisallowedFields("qwer");
|
||||
}
|
||||
|
||||
/**
|
||||
* 分页查询密码设备列表
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user