摘要: Spring注册Bean的方式 @Component 将某个类作为Bean @Component public class Helper { } 还有一些基于@Component进行扩展的注解也能实现,比如@Configuration、@Controller/@RestController、@Service、@Repository 阅读全文
posted @ 2023-11-20 08:39 残城碎梦 阅读(182) 评论(0) 推荐(0)