摘要:
1、自定义TypeFilter指定过滤规则 1)、FilterType.ANNOTATION:按照注解过滤规则2)、FilterType.ASSIGNABLE_TYPE:按照给定的类型过滤规则3)、FilterType.ASPECTJ:按照ASPECTJ表达式过滤规则4)、FilterType.RE 阅读全文
摘要:
1、@ComponentScan注解表示扫描所有的类,相当于把所有的@Controller、@Service、@Repository、@Component等注解加载到Spring容器中 package com.tom.config; import com.tom.domain.Persion; im 阅读全文
摘要:
1、@Configuration注解告诉Spring容器这是一个配置类型,相当于ApplicationConfig.xml文件配置 package com.tom.config; import org.springframework.context.annotation.Configuration; 阅读全文