org.springframework.beans.factory.NoSuchBeanDefinitionException在cmd上运行spring应用程序时出错

时间:2014-08-15 01:28:08

标签: java spring netbeans cmd maven-2

我通过netbeans运行我的java maven应用程序,一切正常。然而,在我清理并构建我的项目并通过终端运行后,我获得了一个例外奖励:'(:

Exception in thread "AWT-EventQueue-0" org.springframework.beans.factory.NoSuchBeanDefinitionException: No unique bean of type [com.bustomi.bookstorepos.service.HakAksesService] is defined: expected single bean but found 0:
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:271)
        at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1083)
        at com.bustomi.bookstorepos.manager.SpringManager.getBean(SpringManager.java:58)
如果有人修复我的错误,我会很高兴。对不好的英语抱歉:(

0 个答案:

没有答案