Reverted changes in r2282: now using varags again.
git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@2403 50f2f4bb-b051-0410-bef5-90022cba6387
This commit is contained in:
parent
e42cfe8e22
commit
025aaf7ef7
|
|
@ -39,7 +39,7 @@ public class AddOwnerForm {
|
|||
|
||||
@InitBinder
|
||||
public void setAllowedFields(WebDataBinder dataBinder) {
|
||||
dataBinder.setDisallowedFields(new String[] {"id"});
|
||||
dataBinder.setDisallowedFields("id");
|
||||
}
|
||||
|
||||
@RequestMapping(method = RequestMethod.GET)
|
||||
|
|
|
|||
|
|
@ -49,7 +49,7 @@ public class AddPetForm {
|
|||
|
||||
@InitBinder
|
||||
public void setAllowedFields(WebDataBinder dataBinder) {
|
||||
dataBinder.setDisallowedFields(new String[] {"id"});
|
||||
dataBinder.setDisallowedFields("id");
|
||||
}
|
||||
|
||||
@RequestMapping(method = RequestMethod.GET)
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@ public class AddVisitForm {
|
|||
|
||||
@InitBinder
|
||||
public void setAllowedFields(WebDataBinder dataBinder) {
|
||||
dataBinder.setDisallowedFields(new String[] {"id"});
|
||||
dataBinder.setDisallowedFields("id");
|
||||
}
|
||||
|
||||
@RequestMapping(method = RequestMethod.GET)
|
||||
|
|
|
|||
|
|
@ -39,7 +39,7 @@ public class EditOwnerForm {
|
|||
|
||||
@InitBinder
|
||||
public void setAllowedFields(WebDataBinder dataBinder) {
|
||||
dataBinder.setDisallowedFields(new String[] {"id"});
|
||||
dataBinder.setDisallowedFields("id");
|
||||
}
|
||||
|
||||
@RequestMapping(method = RequestMethod.GET)
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ public class EditPetForm {
|
|||
|
||||
@InitBinder
|
||||
public void setAllowedFields(WebDataBinder dataBinder) {
|
||||
dataBinder.setDisallowedFields(new String[] {"id"});
|
||||
dataBinder.setDisallowedFields("id");
|
||||
}
|
||||
|
||||
@RequestMapping(method = RequestMethod.GET)
|
||||
|
|
|
|||
|
|
@ -35,7 +35,7 @@ public class FindOwnersForm {
|
|||
|
||||
@InitBinder
|
||||
public void setAllowedFields(WebDataBinder dataBinder) {
|
||||
dataBinder.setDisallowedFields(new String[] {"id"});
|
||||
dataBinder.setDisallowedFields("id");
|
||||
}
|
||||
|
||||
@RequestMapping(value = "/owners/search", method = RequestMethod.GET)
|
||||
|
|
|
|||
Loading…
Reference in New Issue