© 2026 Hedgehog Software, LLC
@Data @Builder public class UserDto { private Long id; private String firstName; private String lastName; private String email; private String password; private LocalDateTime createdAt; private LocalDateTime updatedAt; }
@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."); }
→ moviewatchlist: build failed At 11.04.2025 19:13 with 13 errors > UserController.java moviewatchlist\src\main\java\com\max420\moviewatchlist\controllers 4 errors → cannot find symbol method getFirstName() :24 O cannot find symbol method getLastName() :24 O cannot find symbol method getEmail() :24 O cannot find symbol method getPassword() :24 UserService.java moviewatchlist\src\main\java\com\max420\moviewatchlist\services\impl 9 errors
Join the Discord to ask follow-up questions and connect with the community
We are a Community full of Java developers. Connect with other devs, get help, help others and do much more!
27,739 Members