-
Notifications
You must be signed in to change notification settings - Fork 41.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SpringBoot 3.4.4: Lombok Annotation Processing isn't working as expected #44950
Comments
Please share a minimal sample application as the issue is probably not in the POM itself. |
Hi there, |
Hey, I can't reproduce it.
use this config: spring.datasource.username=postgres
spring.datasource.password=mysecretpassword
spring.jpa.hibernate.ddl-auto=update
spring.datasource.driver-class-name=org.postgresql.Driver
spring.datasource.url=jdbc:postgresql://localhost:5432/postgres
spring.jpa.show-sql=true
spring.jpa.open-in-view=false
|
If you used an IDE to run the application, make sure that annotation processing is enabled, otherwise Lombok doesn't generate the getters / setters. My guess is that |
yes, my bad seems to be some issue which is not enabling annotation processing despite it being ticked. |
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
Controller class:
@GetMapping("/products") public List<Product> getProducts(){ return productService.getAllProducts(); }
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
[{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{},{}]
The text was updated successfully, but these errors were encountered: