特牛网址导航

【精选】SpringBoot如何自定义starter_springboot2.7.11 自定义 starter_白白甜甜冰的博客-CSDN博客

网友收藏
文章浏览阅读1k次。一、SpringBoot的starter机制SpringBoot中的starter是一种非常重要的机制,能够抛弃以前繁杂的配置,将其统一集成进starter,应用者只需要在maven中引入starter依赖,SpringBoot就能自动扫描到要加载的信息并启动相应的默认配置。starter让我们摆脱了各种依赖库的处理以及需要配置各种信息的困扰。SpringBoot会自动通过classpath路径下的类发现需要的Bean,并注册进IOC容器。SpringBoot提供了针对日常企业应用研发各种场景的spri_springboot2.7.11 自定义 starter