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

新功能添加调研,通过用户反馈获取功能点开发的必要性 #10

Open
fuzhengwei opened this issue Mar 10, 2022 · 2 comments

Comments

@fuzhengwei
Copy link
Owner

需求点调研

@fuzhengwei fuzhengwei pinned this issue Mar 10, 2022
@tzraeq
Copy link

tzraeq commented Mar 25, 2022

如果使用了spring-mvc,那么提交到controller的数据,通常是json,如果用map承接数据,那确实有这个需求,但是目前插件好像不支持map作为转换源。spring-mvc是可以用java bean承接数据的,如果按照规范,java bean必然是驼峰命名,此时通过配置MappingJackson2HttpMessageConverter实现属性驼峰和下划线的转换。
最后,看看其他同学有没有其他使用情况。

@Lizecongs
Copy link

用jackson的@JsonProperty("服务传输数据的字段格式") 可以解决这种问题吧 实体依然按照驼峰命令 例如:

@JsonProperty("head-img-url")
private String headImageUrl;

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

3 participants