Deloitte interview question

How to declare a class as Spring Controller using XML?