摘要: @Component和@Bean的目的是一样的,都是注册bean到Spring容器中。 @Component VS @Bean @Component 和 它的子类型(@Controller, @Service and @Repository)注释在类上。告诉Spring,我是一个bean,通过类路径 阅读全文
posted @ 2019-09-18 15:28 zoe_java 阅读(11404) 评论(1) 推荐(3) 编辑