细节优化
This commit is contained in:
@@ -60,12 +60,12 @@ public class BaseController {
|
|||||||
*/
|
*/
|
||||||
@InitBinder
|
@InitBinder
|
||||||
protected void initBinder(WebDataBinder binder) {
|
protected void initBinder(WebDataBinder binder) {
|
||||||
|
binder.setAutoGrowCollectionLimit(1024);
|
||||||
binder.registerCustomEditor(String.class, new StringTrimmerEditor(true));
|
binder.registerCustomEditor(String.class, new StringTrimmerEditor(true));
|
||||||
binder.registerCustomEditor(Date.class, new DateEditor(true));
|
binder.registerCustomEditor(Date.class, new DateEditor(true));
|
||||||
binder.registerCustomEditor(String.class, "password", new StringEditor(true));
|
binder.registerCustomEditor(String.class, "password", new StringEditor(true));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ExceptionHandler
|
@ExceptionHandler
|
||||||
@ResponseBody
|
@ResponseBody
|
||||||
public Message exceptionHandler(Exception exception) {
|
public Message exceptionHandler(Exception exception) {
|
||||||
|
|||||||
@@ -23,6 +23,7 @@ public class BaseController {
|
|||||||
|
|
||||||
@InitBinder
|
@InitBinder
|
||||||
protected void initBinder(WebDataBinder binder) {
|
protected void initBinder(WebDataBinder binder) {
|
||||||
|
binder.setAutoGrowCollectionLimit(1024);
|
||||||
binder.registerCustomEditor(String.class, new StringTrimmerEditor(true));
|
binder.registerCustomEditor(String.class, new StringTrimmerEditor(true));
|
||||||
binder.registerCustomEditor(Date.class, new DateEditor(true));
|
binder.registerCustomEditor(Date.class, new DateEditor(true));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user