Spring numberformatting with registercustomereditor on list of numbers
问题 When registering a customerEditor in spring to format a number with a given numberFormat instance, it is easy to apply this to a specific field in the jsp, e.g.: NumberFormat numberFormat = getNumberFormat(0, 0, 2); PropertyEditor propertyEditor = new CustomNumberEditor(Double.class, numberFormat, true); binder.registerCustomEditor(Double.class, "myDoubleField", propertyEditor); This will result in a correct format of the number based on the applications locale (regarding commas and dots for