Junior — Middle
Tell about your experience working with Java, what projects you implemented, and what technologies you used.
sobes.tech AI
Answer from AI
In my Java projects, I worked with web applications and services. For example, I created REST APIs using Spring Boot, where I implemented business logic and interacted with databases through JPA/Hibernate. I also used Maven for dependency management and project building.
In one project, there was integration with external services via HTTP clients, and for testing, I used JUnit and Mockito. I worked with PostgreSQL for data management.
Here's an 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) {
// logic to retrieve user
return ResponseEntity.ok(userService.findById(id));
}
}