当我将 java-object 转换为 json-string 时,我尝试组织动态 @JsonIgnore 属性。在示例 中,它适用于 (codehause jackson) ObjectMapper oMapper = new ObjectMapper(); oMapper。设置序列化配置(...
或以更快的xml objectMapper.getSerializationConfig()为例。setSerializationView (
问题:我的杰克逊没有粗体方法:
pom.xml
<jackson.version>2.1.1</jackson.version>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>${jackson.version}</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>${jackson.version}</version>
</dependency>