spring定制属性编辑器
public class AddressEditor extends PropertyEditorSupport {public void setAsText(String text) throws IllegalArgumentException {if (text != null && text.length() > 0) {String[] ss = text.split("\\.");if(ss.length>3) {Address a = new Address();a.setProvince(ss[0]);a.setCity(ss[1]);a.setStreet(ss[2]);a.setZipCode(ss[3]);setValue(a);} else {setValue(null);}} else {setValue(null);}}}