Spring, Usage of annotation configurations