Senior
Tell about your work experience and your last project.
sobes.tech AI
Answer from AI
In my experience working as a senior Java developer, I participated in several major projects, including the development of a distributed system for real-time big data processing. In the last project, I was responsible for microservices architecture, used Spring Boot, Kafka for message exchange, and Docker for containerization. I also implemented CI/CD processes using Jenkins and wrote unit and integration tests with JUnit and Mockito.
Example of a simple REST controller in Spring Boot:
@RestController
@RequestMapping("/api/users")
public class UserController {
@GetMapping("/{id}")
public ResponseEntity<User> getUser(@PathVariable Long id) {
User user = userService.findById(id);
if (user == null) {
return ResponseEntity.notFound().build();
}
return ResponseEntity.ok(user);
}
}