Spring - @ComponentScan用法及手写简单实现
@ComponentScan:默认扫描与当前类所在包下的带有@Service、@Controller、@Component、@Repository注解修饰的类装入到Spring容器中。package com.demo.test;import org.springframework.stereotype.Controller;@Controllerpublic class Test...