![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Spring/SpringBoot
文章平均质量分 59
Morning_Dream
这个作者很懒,什么都没留下…
展开
-
springboot中使用线程池
springboot 中使用线程池执行异步任务原创 2022-12-16 15:16:37 · 305 阅读 · 1 评论 -
Component@Configuration
注解对比@Component @Bean 区别@Component @Bean 区别@Component注解表明一个类会作为组件类,并告知Spring要为这个类创建bean。@Bean注解告诉Spring这个方法将会返回一个对象,这个对象要注册为Spring应用上下文中的bean。通常方法体中包含了最终产生bean实例的逻辑。两者的目的是一样的,都是注册bean到Spring容器中。区别:@Component(@Controller、@Service、@Repository原创 2021-07-27 11:02:05 · 183 阅读 · 0 评论