Jackson的配置、使用方式以及效率方面的简单介绍。
1.maven依赖
1 <!-- jackson依赖 --> 2 <dependency> 3 <groupId>com.fasterxml.jackson.core</groupId> 4 <artifactId>jackson-core</artifactId> 5 <version>2.4.3</version> 6 </dependency> 7 8 <dependency> 9 <groupId>com.fasterxml.jackson.core</groupId> 10 <artifactId>jackson-databind</artifactId> 11 <version>2.4.3</version> 12 </dependency> 13 14 <dependency> 15 <groupId>com.fasterxml.jackson.core</groupId> 16 <artifactId>jackson-annotations</artifactId> 17 <version>2.4.3</version> 18 </dependency>
2.jackson的常用三种方式