目录一、简单介绍二、注解说明1. @ComponentScans注解源码2. @ComponentScan注解源码3. ScopedProxyMode枚举类源码4. FilterType枚举类源码三、使用案例1. 案例描述2. 案例实现新建自定义过滤规则类ComponentScanFil
目录ConfigurationClassPostProcessor类Parse each @Configuration classComponentScanAnnotationParser类ClassPathBeanDefinitionScanner类本文将通过阅读spring源码,分析@ComponentScan注解扫描组件的原理。
class ProfileController < ApplicationController def show username = params[:username] @user = User.find_by_username(username)