admin管理员组文章数量:1129028
Note : seeing issues while serializing or deserializing "LocalDateTime" using Gson api. i have implemented type-adapters for the LocalDateTime. but i see error
Failed making field 'java.time.Duration#seconds' accessible; either increase its visibility or write a custom TypeAdapter for its declaring type.
Java version used : 22
below is the code snippet of the fields used
@EntityListeners(value = {TimestampEntityListener.class})
@Entity
@Table(name = "user")
@SecondaryTable(name = "user_company")
@RestWS(UserWS.class)
public class UserEntity{
private Long id;
private Long typeUserId;
private String firstName;
private java.time.LocalDateTime dateCreated;
private java.time.LocalDateTime dateUpdated;
}
本文标签:
版权声明:本文标题:json deserialization - Gson Serailizaton : Failed making field 'java.time.Duration#seconds' accessible; either i 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736735957a1950255.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论