Patel
Patel
JCHJava Community | Help. Code. Learn.
Created by Patel on 3/2/2025 in #java-help
Lombok Not Generating Getters in Spring Boot with MapStruct & Maven (Java 21)
Hey everyone! I finally figured out why Lombok wasn't generating getters in my Spring Boot project. šŸ¤¦ā€ā™‚ļø Turns out, I forgot to add Lombok as an annotation processor inside annotationProcessorPaths for MapStruct in maven-compiler-plugin. Adding this fixed it:
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${org.lombok.version}</version>
</path>
<path>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>${org.lombok.version}</version>
</path>
Hopefully, this saves someone else the headache! šŸ˜…šŸš€
6 replies
JCHJava Community | Help. Code. Learn.
Created by Patel on 3/2/2025 in #java-help
Lombok Not Generating Getters in Spring Boot with MapStruct & Maven (Java 21)
Tried Solutions from GitHub Issues & Community: āœ… Added -proc:full to <compilerArgs> under maven-compiler-plugin āœ… Removed <optional>true</optional> from Lombok dependency āœ… Enabled annotation processing in IntelliJ/Eclipse settings āœ… Checked for conflicting imports of User class āœ… Rebuilt the project using mvn clean install & mvn clean compile However, Lombok-generated methods are still missing! šŸ’” Any ideas on what could be causing this issue in my Spring Boot project? šŸš€
6 replies
JCHJava Community | Help. Code. Learn.
Created by Patel on 1/13/2024 in #java-help
Couldn't understand why 1<1 become true in following code?
I don't know what state in my mind was
13 replies
JCHJava Community | Help. Code. Learn.
Created by Patel on 1/13/2024 in #java-help
Couldn't understand why 1<1 become true in following code?
Yes, I've used the debugger, still I thought why it should return false, without thinking any thing. I've made pre assumption
13 replies
JCHJava Community | Help. Code. Learn.
Created by Patel on 1/13/2024 in #java-help
Couldn't understand why 1<1 become true in following code?
@dan1st | Daniel you are right, sorry for such a dumb question.
13 replies