Spring 对某个对象进行代理(aop的功能,能够对某个功能进行开关)

EnableLuban @Retention(RetentionPolicy.RUNTIME) @Import(MyImportSelector.class) public @interface EnableLuban { } Appconfig @ComponentScan("com.luban") @EnableLuban //开启代理功能,去掉就不会对IndexDao进行代理 public
相关文章
相关标签/搜索