Exception in thread "main" org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'user' available

Exception in thread "main" org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'user' availab

初学者一碰到就蒙逼,主要类名和对象名不一致导致的异常,莫慌。在applicationContext.xml里改下user就可以了。

原文地址:https://www.cnblogs.com/zyj747865041/p/11530390.html