ObjectMapper can’t deserialize without default constructor after upgrade to Spring Boot 2

Due to breaking changes in Lombok version 1.16.20 you need to set the following property in your lombok.config file (if you don’t have this file you can create it in your project root):

lombok.anyConstructor.addConstructorProperties=true

This is described in the Lombok changelog: https://projectlombok.org/changelog.

After that the @Value should be accepted again by Jackson.

You may be interested in following the related GitHub issue here, although it’s about @Data: https://github.com/rzwitserloot/lombok/issues/1563

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)