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