Context component scan is necessary when we are dealing with spring mvc controllers

In Spring MVC if we wont include
<context:component-scan basepackage="package name where the controller class exist"> 
@Controller,@RequestParam will not work.

For Example: If you written your controller class inside of the package com.sample.test,you have to give this package name as base package.

Comments