标签:ack fast nbsp 封装 abi 图片 image artifact 需要

自动将数据封装成json格式的数据返回回去
Maven
<!-- Json Begin -->
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
</dependency>
<!-- Json End -->
如果不需要摸个字段被打包的话
使用@JsonIgnore注解get方法上
前提必须有这个依赖(上面已经有了)
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
</dependency>

标签:ack fast nbsp 封装 abi 图片 image artifact 需要
原文地址:https://www.cnblogs.com/yanxiaoge/p/10898299.html