i
NR Consulting
Filter interviews by
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)
Top trending discussions
posted on 15 Aug 2024
I applied via Company Website and was interviewed in Jul 2024. There were 2 interview rounds.
For designer have to create page
And for coder simple coding questions
I applied via LinkedIn and was interviewed in Jun 2024. There was 1 interview round.
About web development
posted on 10 Jan 2025
I was interviewed before Jan 2024.
based on 1 interview
Interview experience
based on 1 review
Rating in categories
4-10 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