Fix Request for AvoidImproperAnnotationCombinations
Closed this issue · 1 comments
jborgers commented
Combining 1. [@]Component and [@]Data is typically wrong, yet, combining 2. [@]Configuration and [@]Data is less clear.
[@]Components are not meant to be passed around or put in collections, should preferably be stateless. State in Components must be made thread-safe.
[@]Configuration is actually data, where Spring calls the getters once and caches the values. Setters may also be called, just once, to initialize (depending on how Spring implements it).
jborgers commented
Also add proper documentation.