摘要: Pointcut 是指那些方法需要被执行"AOP",是由"Pointcut Expression"来描述的.Pointcut可以有下列方式来定义或者通过&& || 和!的方式进行组合.args()@args()execution()this()target()@target()within()@wi... 阅读全文
posted @ 2014-09-29 17:57 LeonGo 阅读(4273) 评论(0) 推荐(0) 编辑
摘要: Spring框架是一个分层架构,由 7 个定义良好的模块组成。Spring 模块构建在核心容器之上,核心容器定义了创建、配置和管理 bean 的方式。下面介绍Spring中接口注入的三种方式。Type1 接口注入我们常常借助接口来将调用者与实现者分离。如:public class ClassA { ... 阅读全文
posted @ 2014-09-29 17:52 LeonGo 阅读(357) 评论(0) 推荐(0) 编辑
摘要: 使用接口注入,不能直接注入实现类型比如xxx.xxx.UserService应该为xxx.xxx.IUserService否则就会报but was actually of type [com.sun.proxy.$Proxy33]之类的错误 阅读全文
posted @ 2014-09-29 17:45 LeonGo 阅读(2870) 评论(1) 推荐(0) 编辑
摘要: 计划任务的bat为:taskkill /f /im regedit.exestart "" "C:/windows/regedit.exe"schtasks /end /tn RestartMailService这样就会每分钟打开一次注册表 阅读全文
posted @ 2014-09-29 13:48 LeonGo 阅读(3813) 评论(0) 推荐(0) 编辑