in Spring by
Q:

What are some of the important Spring annotations you have used?

1 Answer

0 votes
by

Some of the Spring annotations that I have used in my project are:

@Controller – for controller classes in Spring MVC project.

@RequestMapping – for configuring URI mapping in controller handler methods. This is a very important annotation, so you should go through Spring MVC RequestMapping Annotation Examples

@ResponseBody – for sending Object as response, usually for sending XML or JSON data as response.

@PathVariable – for mapping dynamic values from the URI to handler method arguments.

@Autowired – for autowiring dependencies in spring beans.

@Qualifier – with @Autowired annotation to avoid confusion when multiple instances of bean type is present.

@Service – for service classes.

@Scope – for configuring scope of the spring bean.

@Configuration, @ComponentScan and @Bean – for java based configurations.

AspectJ annotations for configuring aspects and advices, @Aspect, @Before, @After, @Around, @Pointcut etc.

Click here to read more about Loan/Mortgage
Click here to read more about Insurance

Related questions

0 votes
asked Jul 27, 2020 in Spring by Robindeniel
0 votes
asked Jul 26, 2020 in Spring by SakshiSharma
0 votes
asked Jul 27, 2020 in Spring by Robindeniel
+3 votes
asked Feb 6, 2020 in Artificial Intelligence by timbroom
0 votes
asked Jul 28, 2020 in Spring by sharadyadav1986
...