细节优化

This commit is contained in:
suncz
2025-09-22 14:58:53 +08:00
parent ff90040907
commit e976d59d1a
2 changed files with 2 additions and 1 deletions

View File

@@ -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) {

View File

@@ -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));
}