com.github.zjb-it:jackson-replace-fastjson

Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/

License

License

Categories

Categories

JSON Data Jackson fastjson
GroupId

GroupId

com.github.zjb-it
ArtifactId

ArtifactId

jackson-replace-fastjson
Last Version

Last Version

1.2
Release Date

Release Date

Type

Type

jar
Description

Description

Sonatype helps open source projects to set up Maven repositories on https://oss.sonatype.org/
Source Code Management

Source Code Management

https://github.com/zjb-it/jackson-replace-fastjson

Download jackson-replace-fastjson

How to add to project

<!-- https://jarcasting.com/artifacts/com.github.zjb-it/jackson-replace-fastjson/ -->
<dependency>
    <groupId>com.github.zjb-it</groupId>
    <artifactId>jackson-replace-fastjson</artifactId>
    <version>1.2</version>
</dependency>
// https://jarcasting.com/artifacts/com.github.zjb-it/jackson-replace-fastjson/
implementation 'com.github.zjb-it:jackson-replace-fastjson:1.2'
// https://jarcasting.com/artifacts/com.github.zjb-it/jackson-replace-fastjson/
implementation ("com.github.zjb-it:jackson-replace-fastjson:1.2")
'com.github.zjb-it:jackson-replace-fastjson:jar:1.2'
<dependency org="com.github.zjb-it" name="jackson-replace-fastjson" rev="1.2">
  <artifact name="jackson-replace-fastjson" type="jar" />
</dependency>
@Grapes(
@Grab(group='com.github.zjb-it', module='jackson-replace-fastjson', version='1.2')
)
libraryDependencies += "com.github.zjb-it" % "jackson-replace-fastjson" % "1.2"
[com.github.zjb-it/jackson-replace-fastjson "1.2"]

Dependencies

compile (1)

Group / Artifact Type Version
com.fasterxml.jackson.core : jackson-databind jar 2.11.2

Project Modules

There are no modules declared in this project.

jackson-replaces-fastjson

2步jackson快速替换fastjson

因为fastjson的安全漏洞,项目需求需要全面替换fastjson,所以写了这个jar包,jackson快速替换Fastjson

  1. 第一步,添加依赖
<dependency>
            <groupId>com.github.zjb-it</groupId>
            <artifactId>jackson-replace-fastjson</artifactId>
            <version>${latest.version}</version>
        </dependency>
  1. 第二步,全局替换包名

idea的快捷键 ctrl+shift+r

import com.alibaba.fastjson.JSON
替换为
import jackson.replaces.fastjson.JSON

import com.alibaba.fastjson.JSONArray
替换为
import jackson.replaces.fastjson.JSONArray

import com.alibaba.fastjson.JSONObject
替换为
import jackson.replaces.fastjson.JSONObject

Versions

Version
1.2
1.1
1.0