Use Spring annotation configuration instead of xml configuration