Spring 注解 通过@Resource获得的是空指针

CommonReadMapper commonReadMapper =  (CommonReadMapper) getApplicationContext().getBean("commonReadMapper");
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'CommonReadMapper'

getBean里面的bean id写错了,小写commonReadMapper