2
사용자 정의 등록 정보 편집기를 등록하는 데 문제가 있습니다. 나는 이것을 다음과 같이 등록한다 :많은 등록 정보 편집자 등록
class BooleanEditorRegistrar implements PropertyEditorRegistrar {
public void registerCustomEditors(PropertyEditorRegistry registry) {
registry.registerCustomEditor(Boolean.class,
new CustomBooleanEditor(CustomBooleanEditor.VALUE_YES, CustomBooleanEditor.VALUE_NO, false))
registry.registerCustomEditor(Boolean.class,
new CustomBooleanEditor(CustomBooleanEditor.VALUE_ON, CustomBooleanEditor.VALUE_OFF, true))
}
}
그러나 처음으로 적용된다. 더 많은 것을 등록 할 수 있습니까?
작동합니다. 감사합니다. –