同一个目标类型,多个转换问题
#2896
Replies: 1 comment 1 reply
-
嗯,确实有这个问题。 不过自定义转换的话,可能你要重写对应的XXXXConverter了。 因为正式使用时,都是自动转换,没法指定名称,既然指定了名称,为何不自己转? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
ConverterRegistry能否添加一个自定义名称的转换器,有时候会存在同一个目标类型,多个转换器的问题,如下
ConverterRegistry putCustom(Type type,String name,Class> converterClass)
或者
ConverterRegistry putCustom(String name,Class> converterClass)
Beta Was this translation helpful? Give feedback.
All reactions