i
NR Consulting
Filter interviews by
I was interviewed in Jan 2025.
Dependency injection in Spring Boot allows objects to be injected into a class, reducing tight coupling and improving flexibility.
In Spring Boot, dependency injection is achieved through the use of @Autowired annotation.
Dependencies are injected into a class by Spring framework at runtime.
It helps in achieving loose coupling between classes and promotes easier testing.
Example: @Autowired private UserService userService
The @RestController annotation in Spring Boot is used to define a RESTful web service endpoint.
Used to create RESTful web services in Spring Boot
Maps HTTP requests to handler methods
Returns data in JSON or XML format
Example: @RestController public class UserController { @GetMapping("/users") public List<User> getAllUsers() { return userService.getAllUsers(); }
The @RequestMapping annotation is used in Spring MVC to map web requests to specific handler methods.
Used to map HTTP requests to specific controller methods
Can specify the HTTP method, URL path, and other parameters
Helps in routing requests to the appropriate controller method
Example: @RequestMapping(value = "/hello", method = RequestMethod.GET)
I was interviewed in Jan 2025.
NR Consulting interview questions for popular designations
Top trending discussions
based on 19 interviews
Interview experience
based on 193 reviews
Rating in categories
4-10 Yrs
Not Disclosed
5-8 Yrs
Not Disclosed
Talent Acquisition Executive
25
salaries
| ₹2.5 L/yr - ₹5 L/yr |
Technical Recruiter
10
salaries
| ₹2.4 L/yr - ₹5.4 L/yr |
Senior Technical Recruiter
8
salaries
| ₹4.1 L/yr - ₹5.2 L/yr |
Associate Talent Acquisition
8
salaries
| ₹2.4 L/yr - ₹3 L/yr |
Data Analyst
7
salaries
| ₹4 L/yr - ₹6 L/yr |
McKinsey & Company
BCG
KPMG India
Deloitte