为了账号安全,请及时绑定邮箱和手机立即绑定

好像炸不到spring.ioc.xml一样 。。。。是不是还要导入其他的包???

好像炸不到spring.ioc.xml一样 。。。。是不是还要导入其他的包???

一笑断尘 2016-08-26 16:57:25
信息: Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@244038d0: startup date [Fri Aug 26 16:52:21 CST 2016]; root of context hierarchyorg.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'oneInterface' is defined at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:641) at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1159) at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:282) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:195) at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:973) at com.imooc.test.base.UnitTestBase.getBean(UnitTestBase.java:42) at com.imooc.Testdemo.TestOneInterface.testSay(TestOneInterface.java:21) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
查看完整描述

1 回答

已采纳
?
大咪

TA贡献785条经验 获得超332个赞

你@configuration那个注解的代码截图过来看看……有可能是没有读取到xml文件

查看完整回答
反对 回复 2016-08-26
  • 1 回答
  • 0 关注
  • 1299 浏览

添加回答

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信