-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Open
Labels
lombokIssue (likely) related to use of LombokIssue (likely) related to use of Lombokproperty-iPhoneIssue related to naming issue for fields like "iPhone"Issue related to naming issue for fields like "iPhone"
Description
Search before asking
- I searched in the issues and found nothing similar.
Describe the bug
entity
@Getter
@Setter
public class UserInfoParam implements Serializable {
private static final long serialVersionUID = 3841116001413160891L;
private String uPhone;
private String uName;
private Byte sex;
private Integer age;
private Date createTime;
private Date updateTime;
}
RequestBody
{
"uName": "www",
"uPhone": "13333333333",
"age": 19,
"sex": 1
}
The properties of age and sex is normal, but uName and uPhone failed, I have traced the invoke chain, find there is bug in com/fasterxml/jackson/core/jackson-databind/2.18.5/jackson-databind-2.18.5-sources.jar!/com/fasterxml/jackson/databind/deser/BeanDeserializer.java:396:, _beanProperties cant find uName, but have uname
finally, I replace uName to userName, all worked.
Version Information
2.13.3 and 2.18.5
Environment
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.6.8</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
......
<url/>
<licenses>
<license/>
</licenses>
<developers>
<developer/>
</developers>
<scm>
<connection/>
<developerConnection/>
<tag/>
<url/>
</scm>
<properties>
<java.version>11</java.version>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-core</artifactId>
<version>2.18.5</version>
</dependency>
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.18.5</version>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.42</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-lang3</artifactId>
<version>3.16.0</version>
</dependency>
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>2.3.0</version>
</dependency>
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
Metadata
Metadata
Assignees
Labels
lombokIssue (likely) related to use of LombokIssue (likely) related to use of Lombokproperty-iPhoneIssue related to naming issue for fields like "iPhone"Issue related to naming issue for fields like "iPhone"