Java Spring: Annotation Configuration and Java Configuration in Spring