Skip to content

SpringBoot 3.4.4: Lombok Annotation Processing isn't working as expected #44950

@hrajpal96

Description

@hrajpal96

Lombok Data annotation isn't processing getters and setters for Entity class in controller endpoint when returning response list with SpringBoot 3.4.4 with the default configurations used from SpringInitializr

  1. Controller class:
    @GetMapping("/products") public List<Product> getProducts(){ return productService.getAllProducts(); }

  2. pom.xml
    https://gist.github.com/hrajpal96/d5e88d1a7c435292a51805fa44905c6d

The controller uses service which uses an extension of JpaRepository, the results are fetched fine till controller but are returned as empty responses list with the expected row count
[{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{}]

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: invalidAn issue that we don't feel is valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions