摘要:
@Component和@Bean的目的是一样的,都是注册bean到Spring容器中。 @Component VS @Bean @Component 和 它的子类型(@Controller, @Service and @Repository)注释在类上。告诉Spring,我是一个bean,通过类路径 阅读全文
posted @ 2020-11-02 22:33
fighting、瑞
阅读(106)
评论(0)
推荐(0)