@Comporent==
@Resourse~~=@Autowired~~==@Inject @Resourse默认是byName注入 @Autoride默认是byType
@Repository(“actionDao”) 声明是DAO类型的类
@Service(“actionManager”) 声明是service层的类
@Controller
@RequestMapping(“/action*”)声明是Controller类型的类
@Responsebody表示该方法的返回结果直接写入HTTP response body中
注意:利用Spring的注入功能时,声明的类型必须是接口如果是类的话将无法注入报错。