How do you write an annotation?



How do you write an annotation?..

Answer / Pushpendra Raghuvanshi

To write an annotation in Spring Framework, you define a Java interface with the @interface modifier. This interface contains element types (such as type, target, document, and value) that provide attributes for the annotation.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Spring Framework Interview Questions

How to do setter injection in spring using annotations?

1 Answers  


How does a spring house work?

1 Answers  


What is repository model?

1 Answers  


Explain the advantages of using dao module?

1 Answers  


What is db persistence?

1 Answers  


What does autowired mean in spring?

1 Answers  


What is service layer in spring mvc?

1 Answers  


What is the ioc in spring?

1 Answers  


How do you find the source of a spring?

1 Answers  


What is a bean in spring?

1 Answers  


What is difference between bean and pojo?

1 Answers  


What is @transactional in jpa?

1 Answers  


Categories