spring配置报错 spring事务 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 Error creating bean with name 'com.baobaotao.service.TestUserService' 各位大牛帮看看 Could not autowire field: private com.baobaotao.service.UserService com.baobaotao.service.TestUserService.userService是你的类里面定义错了、或是<!-- 扫描类包,将标注spring注解的类自动转化为bean,同时完成bean的注入 --><context:component-scan base-package="com.baobaotao.dao"/>看见没有、是你定义初始bean范围太小了、service包里面的类都没有初始化为bean. <!-- 扫描类包,将标注spring注解的类自动转化为bean,同时完成bean的注入 --><context:component-scan base-package="com.baobaotao"/> 我是用Junit4 单元测试 <!-- 扫描类包,将标注spring注解的类自动转化为bean,同时完成bean的注入 --><context:component-scan base-package="com.baobaotao.dao"/><!-- 扫描本地service类包,应用Spring注解配置 --><context:component-scan base-package="com.baobaotao.service" />这两个改成一个<context:component-scan base-package="com.baobaotao" /> java.sql.Exception 不支持属性 myeclipse 启动tomcat的问题 ireport怎样设置背景图片啊????????? EE的源代码在哪里? 关于java中访问本地Excel的问题,是别的机子访问非服务器中的Excel JAVA_OPTS 设置 java web开发 安全性 一段jsp代码看不大懂请指教 谁有sun Creator的文档共享一下 weblogic 和 weblogic workshop? javafx2 里的TableView对象,怎样在点击某一行时,获取到该行的所有TableCell对象 新人求助
是你的类里面定义错了、或是
<!-- 扫描类包,将标注spring注解的类自动转化为bean,同时完成bean的注入 -->
<context:component-scan base-package="com.baobaotao.dao"/>
看见没有、是你定义初始bean范围太小了、service包里面的类都没有初始化为bean.
<context:component-scan base-package="com.baobaotao"/>
我是用Junit4 单元测试
<context:component-scan base-package="com.baobaotao.dao"/><!-- 扫描本地service类包,应用Spring注解配置 -->
<context:component-scan base-package="com.baobaotao.service" />这两个改成一个
<context:component-scan base-package="com.baobaotao" />