摘要:
@Import 注解出自spring-context包中 package org.springframework.context.annotation; import java.lang.annotation.Documented; import java.lang.annotation.Eleme 阅读全文
摘要:
在看这篇文章的时候,spring注解驱动开发,一直有2个疑惑 1.为什么MyTypeFilter这个类,我们只是定义了这个类,并没有创建它的对象,它的方法是怎么被调用的嘞,我们知道,非static方法的调用,必须借助这个方法本身所在的类的对象完成,那我们猜测这个类是spring帮我们创建的,但是什么 阅读全文