Polish reference documentation
`@InitBinder` annotated methods are not meant to be part of the public contract of Controller and should be package protected.
This commit is contained in:
parent
e365ffb67a
commit
f3b09464f3
|
|
@ -2039,7 +2039,7 @@ The following example demonstrates the use of `@InitBinder` to configure a
|
||||||
public class MyFormController {
|
public class MyFormController {
|
||||||
|
|
||||||
**@InitBinder**
|
**@InitBinder**
|
||||||
public void initBinder(WebDataBinder binder) {
|
protected void initBinder(WebDataBinder binder) {
|
||||||
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
|
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
|
||||||
dateFormat.setLenient(false);
|
dateFormat.setLenient(false);
|
||||||
binder.registerCustomEditor(Date.class, new CustomDateEditor(dateFormat, false));
|
binder.registerCustomEditor(Date.class, new CustomDateEditor(dateFormat, false));
|
||||||
|
|
@ -2062,7 +2062,7 @@ controller-specific tweaking of the binding rules.
|
||||||
public class MyFormController {
|
public class MyFormController {
|
||||||
|
|
||||||
**@InitBinder**
|
**@InitBinder**
|
||||||
public void initBinder(WebDataBinder binder) {
|
protected void initBinder(WebDataBinder binder) {
|
||||||
binder.addCustomFormatter(new DateFormatter("yyyy-MM-dd"));
|
binder.addCustomFormatter(new DateFormatter("yyyy-MM-dd"));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1462,7 +1462,7 @@ The following example demonstrates the use of `@InitBinder` for configuring a
|
||||||
public class MyFormController {
|
public class MyFormController {
|
||||||
|
|
||||||
@InitBinder
|
@InitBinder
|
||||||
public void initBinder(WebDataBinder binder) {
|
protected void initBinder(WebDataBinder binder) {
|
||||||
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
|
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
|
||||||
dateFormat.setLenient(false);
|
dateFormat.setLenient(false);
|
||||||
binder.registerCustomEditor(Date.class, new CustomDateEditor(dateFormat, false));
|
binder.registerCustomEditor(Date.class, new CustomDateEditor(dateFormat, false));
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue