Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

建议为FastJsonHttpMessageConverter增加dateFormatPattern变量注入 #418

Closed
xuanyuv opened this issue Sep 18, 2015 · 1 comment
Closed
Milestone

Comments

@xuanyuv
Copy link

xuanyuv commented Sep 18, 2015

当使用com.alibaba.fastjson.support.spring.FastJsonHttpMessageConverter进行fastjson与SpringMVC集成时,如果想自定义Date类型的Field序列化格式,目前只能参照FastJsonHttpMessageConverter自己写一个MessageConverter(默认的WriteDateUseDateFormat使用的是yyyy-MM-dd HH:mm:ss)。
我目前的集成方式详见https://github.com/jadyer/JadyerEngine/blob/master/JadyerEngine-web/src/main/resources/applicationContext.xml

@wenshao
Copy link
Member

wenshao commented Apr 13, 2016

supported. it will included in 1.2.9.

@wenshao wenshao closed this as completed Apr 13, 2016
asa1997 pushed a commit to Be-Secure/fastjson that referenced this issue Feb 8, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants