annotations 247

  1. What's the difference between @Component, @Repository & @Service annotations in Spring?
  2. Which @NotNull Java annotation should I use?
  3. Difference between <context:annotation-config> vs <context:component-scan>
  4. When do you use Java's @Override annotation and why?
  5. What is the difference between @Inject and @Autowired in Spring Framework? Which one to use under what condition?
  6. Where does the @Transactional annotation belong?
  7. Should we @Override an interface's method implementation?
  8. JsonMappingException: No suitable constructor found for type [simple type, class ]: can not instantiate from JSON object
  9. @Resource vs @Autowired
  10. Injecting Mockito mocks into a Spring bean
  11. @Nullable annotation usage
  12. Difference between @Before, @BeforeClass, @BeforeEach and @BeforeAll
  13. Scanning Java annotations at runtime
  14. Why does JPA have a @Transient annotation?
  15. Why is it not possible to extend annotations in Java?
  16. Spring: @Component versus @Bean
  17. Setting default values for columns in JPA
  18. How do I assert my exception message with JUnit Test annotation?
  19. Only using @JsonIgnore during serialization, but not deserialization
  20. What does -> mean in Python function definitions?
  21. Does Spring @Transactional attribute work on a private method?
  22. Xml configuration versus Annotation based configuration
  23. How to supply value to an annotation from a Constant java
  24. Java Annotations
  25. @Column(s) not allowed on a @ManyToOne property
  26. Hibernate Annotations - Which is better, field or property access?
  27. Do I need <class> elements in persistence.xml?
  28. @RequestBody and @ResponseBody annotations in Spring
  29. Which annotation should I use: @IdClass or @EmbeddedId
  30. Init method in Spring Controller (annotation version)
  31. Multiple annotations of the same type on one element?
  32. How to annotate MYSQL autoincrement field with JPA annotations
  33. How to retrieve annotated instance from Guice's injector?
  34. How to create optional parameters for own annotations?
  35. @Transactional(propagation=Propagation.REQUIRED)
  36. Spring - Annotation Based Controller - RequestMapping based on query string
  37. java custom annotation: make an attribute optional
  38. @WebServlet annotation with Tomcat 7
  39. EnableWebMvc annotation meaning
  40. putting current class as return type annotation
  41. ggplot2 - annotate outside of plot
  42. What are the similarities and differences between Java Annotations and C# Attributes?
  43. What does the @ sign means in java?
  44. Use cases for implementing annotations
  45. What are variable annotations in Python 3.6?
  46. Spring-MVC Problem using @Controller on controller implementing an interface
  47. javax.annotation: @Nullable vs @CheckForNull
  48. Create Annotation instance with defaults, in Java
  49. Inherited abstract class with JPA (+Hibernate)
  50. JSR-303 @Valid annotation (nested object) not working