Exception in thread "main" org.springframework.beans.factory.NoSuchBeanDefinitionException: No qualifying bean of type [di.UseFunctionS] is defined
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:371)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:331)
at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:968)
at di.Main.main(Main.java:11)
锤爆垃圾盗版电子书,少印了大半页码,害我调错大半小时!!!!《javaEE的颠覆者》这本书
文中只写了一个bean,我们得加上另一个useFunctionS。想想自己也挺傻的,只装配一个,怎么运行。。。
具体内容参考“https://blog.csdn.net/durendong/article/details/54565296”