Cognizant interview question

Rest vs Rest controller in springboot?