org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'userMapper' is defined at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(Defaul

重点是这一句:No bean named 'userMapper' is defined at org.springframework.beans

意思就是找不到指定的bean,可能是指定的gebean("userMapper")里面的名字写错,或者是ApplicationContext.xml中的bean的id属性名写错

原文地址:https://www.cnblogs.com/smartmsl/p/8072191.html