当前位置: 首页 > 工具软件 > jfinal-rest > 使用案例 >

spring rest @JsonIgnore

于飞飙
2023-12-01

jackson-spring

 @JsonIgnore
    public String getPassword() {
        return mPassword;
    }

If you are using Spring 4 version, You will have to do following, Update dependency

<dependency>
        <groupId>com.fasterxml.jackson.core</groupId>
        <artifactId>jackson-core</artifactId>
        <version>2.3.3</version>
    </dependency>

<dependency>
    <groupId>com.fasterxml.jackson.core</groupId>
    <artifactId>jackson-databind</artifactId>
    <version>2.3.3</version>
</dependency>
 类似资料: