Being fairly new to Spring I have a question about annotating a class. When annotating a class with @Component does this mean this class will be a Spring Bean a
@Component
By default - Yes.
However, you can override this behavior using the @Scope annotation. For example: @Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)
@Scope
@Scope(ConfigurableBeanFactory.SCOPE_PROTOTYPE)