GitHub:https://github.com/JoeyBling/fastjson-spring-boot-starter
欢迎使用和Star支持,如使用过程中碰到问题,可以提出Issue,我会尽力完善
该项目主要利用Spring Boot
的自动化配置特性来实现快速的将fastjon
引入spring boot使用fastjson
解析框架。
源码地址
小工具一枚,欢迎使用和Star支持,如使用过程中碰到问题,可以提出Issue,我会尽力完善该Starter
Spring Boot:1.5.x
FastJson:1.2.15
在该项目的帮助下,我们的Spring Boot可以轻松的引入fastjson,主需要做下面两个步骤:
pom.xml
中引入依赖:当前最新版本
10.10.10.RELEASE
spring-boot-starter-parent 2.0.0.RELEASE
之前使用<dependency>
<groupId>io.gitee.zhousiwei</groupId>
<artifactId>fastjson-spring-boot-starter</artifactId>
<version>8.8.8.RELEASE</version>
</dependency>
spring-boot-starter-parent 2.0.0.RELEASE
之后使用<dependency>
<groupId>io.gitee.zhousiwei</groupId>
<artifactId>fastjson-spring-boot-starter</artifactId>
<version>10.10.10.RELEASE</version>
</dependency>
默认情况下就能在springboot项目中使用fastjson
更细致的配置内容参考如下:
fastjson:
enabled: true
media-type: application/json;charset=UTF-8
date-format: yyyy-MM-dd HH:mm:ss
fastjson:
enabled: true # 是否启用fastjson(默认为:true)
media-type: application/json;charset=UTF-8 # 媒体类型(默认为:application/json;charset=UTF-8)
date-format: yyyy-MM-dd HH:mm:ss # 日期格式(默认为:yyyy-MM-dd HH:mm:ss)
8.8.8.RELEASE
新增:date-format
属性,且配置成功会打印控制台信息:starter for fastJson-----fastJson init success.
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
Activity
Community
Health
Trend
Influence
:Code submit frequency
:React/respond to issue & PR etc.
:Well-balanced team members and collaboration
:Recent popularity of project
:Star counts, download counts etc.