本文整理汇总了Java中org.springframework.web.bind.WebDataBinder.setDisallowedFields方法的典型用法代码示例。如果您正苦于以下问题:Java WebDataBinder.setDisallowedFields方法的具体用法?Java WebDataBinder.setDisallowedFields怎么用?Java WebDataBinder.setDisallowedFields使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.springframework.web.bind.WebDataBinder
的用法示例。
在下文中一共展示了WebDataBinder.setDisallowedFields方法的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: initOwnerBinder
import org.springframework.web.bind.WebDataBinder; //导入方法依赖的package包/类
@InitBinder("owner")
public void initOwnerBinder(WebDataBinder dataBinder) {
dataBinder.setDisallowedFields("id");
}
示例2: setAllowedFields
import org.springframework.web.bind.WebDataBinder; //导入方法依赖的package包/类
@InitBinder
public void setAllowedFields(WebDataBinder dataBinder) {
dataBinder.setDisallowedFields("id");
}
示例3: initPetBinder
import org.springframework.web.bind.WebDataBinder; //导入方法依赖的package包/类
@InitBinder("pet")
void initPetBinder(WebDataBinder binder) {
binder.addCustomFormatter(ownerFormatter);
binder.addCustomFormatter(petTypeFormatter);
binder.setDisallowedFields("id");
}
示例4: initBinder
import org.springframework.web.bind.WebDataBinder; //导入方法依赖的package包/类
@InitBinder //④
public void initBinder(WebDataBinder webDataBinder) {
webDataBinder.setDisallowedFields("id"); //⑤
}
示例5: initialiseBinder
import org.springframework.web.bind.WebDataBinder; //导入方法依赖的package包/类
@InitBinder("product")
public void initialiseBinder(WebDataBinder binder) {
binder.setDisallowedFields("unitsInOrder", "discontinued");
binder.setValidator(productValidator);
}
示例6: initBinder
import org.springframework.web.bind.WebDataBinder; //导入方法依赖的package包/类
@InitBinder
public void initBinder(WebDataBinder dataBinder) {
dataBinder.setDisallowedFields("id");
}
示例7: initBinderWithAttributeName
import org.springframework.web.bind.WebDataBinder; //导入方法依赖的package包/类
@InitBinder(value="foo")
public void initBinderWithAttributeName(WebDataBinder dataBinder) {
dataBinder.setDisallowedFields("id");
}
示例8: initBinderTypeConversion
import org.springframework.web.bind.WebDataBinder; //导入方法依赖的package包/类
@InitBinder
public void initBinderTypeConversion(WebDataBinder dataBinder, @RequestParam int requestParam) {
dataBinder.setDisallowedFields("requestParam-" + requestParam);
}
示例9: setAllowedFields
import org.springframework.web.bind.WebDataBinder; //导入方法依赖的package包/类
@InitBinder
public void setAllowedFields(WebDataBinder dataBinder) {
dataBinder.setDisallowedFields("id");
}