ayylmao123xdd
ayylmao123xdd
JCHJava Community | Help. Code. Learn.
Created by Mr Kod3ra on 4/18/2025 in #java-help
Memory leak
yea it can
8 replies
JCHJava Community | Help. Code. Learn.
Created by IamMax420 on 4/11/2025 in #java-help
Lombok @Data annotation problem
ye
25 replies
JCHJava Community | Help. Code. Learn.
Created by IamMax420 on 4/11/2025 in #java-help
Lombok @Data annotation problem
not in a controller
25 replies
JCHJava Community | Help. Code. Learn.
Created by IamMax420 on 4/11/2025 in #java-help
Lombok @Data annotation problem
the code inside this method should be in a separate service
25 replies
JCHJava Community | Help. Code. Learn.
Created by IamMax420 on 4/11/2025 in #java-help
Lombok @Data annotation problem
@PostMapping("/add-user")
public ResponseEntity<String> addUser(@RequestBody UserDto userDto) throws Exception {
try {
if (userDto.getFirstName().isEmpty() || userDto.getLastName().isEmpty() || userDto.getEmail().isEmpty() || userDto.getPassword().isEmpty()) {
throw new Exception("Missing fields while adding a user.");
}
@PostMapping("/add-user")
public ResponseEntity<String> addUser(@RequestBody UserDto userDto) throws Exception {
try {
if (userDto.getFirstName().isEmpty() || userDto.getLastName().isEmpty() || userDto.getEmail().isEmpty() || userDto.getPassword().isEmpty()) {
throw new Exception("Missing fields while adding a user.");
}
25 replies
JCHJava Community | Help. Code. Learn.
Created by IamMax420 on 4/11/2025 in #java-help
Lombok @Data annotation problem
make sure to use mvn clean install too
25 replies
JCHJava Community | Help. Code. Learn.
Created by IamMax420 on 4/11/2025 in #java-help
Lombok @Data annotation problem
just copy the solution from that last thread and it should work
25 replies
JCHJava Community | Help. Code. Learn.
Created by IamMax420 on 4/11/2025 in #java-help
Lombok @Data annotation problem
did you add the annotation processor tag
25 replies
JCHJava Community | Help. Code. Learn.
Created by IamMax420 on 4/11/2025 in #java-help
Lombok @Data annotation problem
didnt you have like the same problem 3 months ago
25 replies
JCHJava Community | Help. Code. Learn.
Created by IamMax420 on 4/11/2025 in #java-help
Lombok @Data annotation problem
did you add any annotation processor tag for lombok
25 replies
JCHJava Community | Help. Code. Learn.
Created by IamMax420 on 4/11/2025 in #java-help
Lombok @Data annotation problem
with lombok config
25 replies
JCHJava Community | Help. Code. Learn.
Created by IamMax420 on 4/11/2025 in #java-help
Lombok @Data annotation problem
can you show the pom file
25 replies
JCHJava Community | Help. Code. Learn.
Created by frink5714 on 4/10/2025 in #java-help
I can't open the file
looks like quarantined by safari
8 replies
JCHJava Community | Help. Code. Learn.
Created by frink5714 on 4/10/2025 in #java-help
I can't open the file
your file name is kinda weird
8 replies
JCHJava Community | Help. Code. Learn.
Created by boosledorf on 4/9/2025 in #java-help
confused about a question on my practice exam with switch and case
theres the exact example you got but with animals instead
12 replies
JCHJava Community | Help. Code. Learn.
Created by boosledorf on 4/9/2025 in #java-help
confused about a question on my practice exam with switch and case
you can read more about it here
12 replies
JCHJava Community | Help. Code. Learn.
Created by boosledorf on 4/9/2025 in #java-help
confused about a question on my practice exam with switch and case
12 replies
JCHJava Community | Help. Code. Learn.
Created by boosledorf on 4/9/2025 in #java-help
confused about a question on my practice exam with switch and case
in this example it takes both statements to the same output
12 replies
JCHJava Community | Help. Code. Learn.
Created by Minotaur | Ping Friendly on 4/7/2025 in #java-help
Function call and its definition giving different results
and can you also check if by any chance theres some other thread changing these variables
9 replies