2020
10-30
10-30
Spring jackson原理及基本使用方法详解
导入maven依赖<!--https://mvnrepository.com/artifact/com.fasterxml.jackson.core/jackson-databind--><dependency><groupId>com.fasterxml.jackson.core</groupId><artifactId>jackson-databind</artifactId><version>2.11.2</version></dependency>1、java对象转json@Testpublicvoidtest01()throwsJsonProcessingException{//创建User对象Useruser=newUser("admin","1111");//将user转为json格式...
继续阅读 >