spring 相关
maggiehexu
这个作者很懒,什么都没留下…
展开
-
在java程序中使用spring的JDBC(非web程序)的简单例子
第一步:spring配置applicationContext.xml文件,放在src下面:原创 2010-07-21 17:23:00 · 2063 阅读 · 0 评论 -
javaweb项目 在Filter中 获取通过AspectJ 注入的 bean
1.applicationContext.xml中AspectJ 配置的内容: <aop:advisor pointcut="execution(* com.maggie.*.service..*.*(..))" advice-ref="txAdvice" /> 2.注入的实现方式:我的项目中使用了XXService接口。XXServ原创 2011-06-22 11:02:00 · 2226 阅读 · 1 评论