Search Interview Questions | Click here and help us by providing the answer. Click Correct / Improve and please let us know. |
|
|||
|
| |||||||||||
| Spring - Interview Questions and Answers for 'Spring annotations' - 3 question(s) found - Order By Newest | |||||||||||
| |||||||||||
| Ans. @Autowired and @Inject are similar in terms of functionality they achieve. @Inject is part of a new Java technology called CDI that defines a standard for dependency injection whereas @Autowired is a Spring specific annotation for dependency injection. | |||||||||||
| |||||||||||
| Ans. There are 2 ways to specify dependencies in Spring, one by the way of specifying beans in config files and other is by specifying annotations like @Bean, @Component , @Service etc to let spring know of the dependencies. | |||||||||||
| |||||||||||
| Ans. @RequestMappping | |||||||||||
| |||||||||||