Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

可否支持指定类型的构造器或工厂方法 #11

Open
jovezhao opened this issue Sep 23, 2021 · 10 comments
Open

可否支持指定类型的构造器或工厂方法 #11

jovezhao opened this issue Sep 23, 2021 · 10 comments

Comments

@jovezhao
Copy link

No description provided.

@noear
Copy link
Owner

noear commented Sep 23, 2021

只支持无参构造器一种。其它不支持。。。

@jovezhao
Copy link
Author

可以考虑添加一个全局配置项,可以指定根据类型创建实例的方式。

@noear
Copy link
Owner

noear commented Sep 23, 2021 via email

@noear
Copy link
Owner

noear commented Sep 23, 2021

可以加到qq群里。。。方便后续交流

@jovezhao
Copy link
Author

早就不用QQ了

@noear
Copy link
Owner

noear commented Oct 12, 2021

@jovezhao
Copy link
Author

看了单测,这个没有解决类型构造的问题,只解决了自定义类型映射。

@noear
Copy link
Owner

noear commented Oct 14, 2021 via email

@jovezhao
Copy link
Author

只需要构造,构造完了,还要使用默认的方式吧json中的值写入实例属性

@noear
Copy link
Owner

noear commented Oct 14, 2021 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants