spring-boot-starters里为什么没有代码

    技术2023-07-19  88

    官方文档:https://docs.spring.io/spring-boot/docs/2.1.3.RELEASE/reference/htmlsingle/#boot-features-custom-starter

    官方推荐:

    一个starter应该包含两部分:autoconfigure, starter;

    starter中包含相关的依赖,

    autoconfigure是自动配置的代码;

    当然也可以两个都放在一个模块,starter里

    所以我们看springboot里发现starter里都是只有依赖,没有代码

    Processed: 0.009, SQL: 9