代码扫描问题解决
This commit is contained in:
@@ -6,8 +6,10 @@ import com.sunyard.chsm.dto.DeviceGroupDTO;
|
||||
import com.sunyard.chsm.model.R;
|
||||
import com.sunyard.chsm.service.DeviceGroupService;
|
||||
import com.sunyard.ssp.common.annotation.AuditControllerLog;
|
||||
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;
|
||||
@@ -30,6 +32,11 @@ public class DeviceGroupController {
|
||||
@Resource
|
||||
private DeviceGroupService deviceGroupService;
|
||||
|
||||
@InitBinder
|
||||
public void initBinder(WebDataBinder binder) {
|
||||
binder.setDisallowedFields("qwer");
|
||||
}
|
||||
|
||||
/**
|
||||
* 分页查询设备组列表
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user