annotations 275

  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. What is the difference between @Inject and @Autowired in Spring Framework? Which one to use under what condition?
  5. When do you use Java's @Override annotation and why?
  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. Difference between @Before, @BeforeClass, @BeforeEach and @BeforeAll
  11. @Nullable annotation usage
  12. Injecting Mockito mocks into a Spring bean
  13. Why does JPA have a @Transient annotation?
  14. Spring: @Component versus @Bean
  15. How do I assert my exception message with JUnit Test annotation?
  16. Scanning Java annotations at runtime
  17. What's the difference between interface and @interface in java?
  18. Why is it not possible to extend annotations in Java?
  19. What does -> mean in Python function definitions?
  20. Only using @JsonIgnore during serialization, but not deserialization
  21. Setting default values for columns in JPA
  22. How and where are Annotations used in Java?
  23. Which types can be used for Java annotation members?
  24. codestyle; put javadoc before or after annotation?
  25. Does Spring @Transactional attribute work on a private method?
  26. What are good uses for Python3's “Function Annotations”
  27. Why does Eclipse complain about @Override on interface methods?
  28. Xml configuration versus Annotation based configuration
  29. How do different retention policies affect my annotations?
  30. How to supply value to an annotation from a Constant java
  31. @Column(s) not allowed on a @ManyToOne property
  32. Combining multiple @SuppressWarnings annotations - Eclipse Indigo
  33. Java Annotations
  34. @RequestBody and @ResponseBody annotations in Spring
  35. Hibernate Annotations - Which is better, field or property access?
  36. Do I need <class> elements in persistence.xml?
  37. Which annotation should I use: @IdClass or @EmbeddedId
  38. How to parameterize @Scheduled(fixedDelay) with Spring 3.0 expression language?
  39. How does lombok work?
  40. How to delete all Annotations on a MKMapView
  41. Why java classes do not inherit annotations from implemented interfaces?
  42. Init method in Spring Controller (annotation version)
  43. Why doesn't a missing annotation cause a ClassNotFoundException at runtime?
  44. Is it possible to read the value of a annotation in java?
  45. Can't find @Nullable inside javax.annotation.*
  46. Multiple annotations of the same type on one element?
  47. Should I use JavaDoc deprecation or the annotation in Java?
  48. How to use @Nullable and @Nonnull annotations more effectively?
  49. Is there something like Annotation Inheritance in java?
  50. How to annotate MYSQL autoincrement field with JPA annotations