spring的aop应用出问题 本帖最后由 shenshengzhiwen 于 2012-06-01 23:48:32 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 expression="execution(* Impl.QueryYear.querydata*(..))"<bean id="queryyears" class="Impl.QueryYear"></bean>bean不是在Impl.QueryYear这个包下吗?Impl.QueryYear.querydata指向的是哪里? 用 <aop:pointcut id="testaop" expression="execution(* Impl.QueryYear.querydata(..))" />试试 高手都过节去了,我来凑个热闹ApplicationContext ctx = new ClassPathXmlApplicationContext("/spring/applicationContext.xml");TotalInter greetingService = (TotalInter)ctx .getBean("queryyears");// xml资源文件中的classbean的id名称 高手不是全都去过节去了,呵呵magong蛮幽默的,多谢magong解决了这个问题,我想问下beanfactory为什么用不了? BeanFactory只提供Spring早期版本的Bean组装特性,差不多是一个向前兼容手段,它对AOP不支持。养成习惯直接用ApplicationContext好了。 java中的Field的应用 求助 Flex工程添加XFire发布WebService报错 Java怎么用代码在windows下卸载USB设备 都说 java 异常处理 是提高 系统健壮性的好方法? hibernate one2many映射 eclipse内存配置问题 SQL2000与EJB之间的数据类型问题? 大家帮我看看我的SQL语句怎么错了? 懂imap的高手讲进 hibernate除了自带的四个连接池外还可以用其他连接池吗? 如何判断一个数组里的2个值相等呢? struts的s:iterator标签能获取到List的内容不能获取ArrayList的内容?麻烦大家过来看下 先谢谢了
<bean id="queryyears" class="Impl.QueryYear"></bean>bean不是在Impl.QueryYear这个包下吗?Impl.QueryYear.querydata指向的是哪里?
我来凑个热闹ApplicationContext ctx = new ClassPathXmlApplicationContext("/spring/applicationContext.xml");
TotalInter greetingService = (TotalInter)ctx
.getBean("queryyears");// xml资源文件中的classbean的id名称
养成习惯直接用ApplicationContext好了。