【问题标题】:Which one is better to name a third party spring boot starter哪个更好地命名第三方spring boot starter
【发布时间】:2020-03-12 06:06:49
【问题描述】:

根据spring boot官方的说法,第三方spring boot starter的命名不能以“spring-boot”开头。推荐使用模式:third-spring-boot-starter。

但如果第三部分有多个开胃菜,如何命名?

third-module1-spring-boot-starter
third-module2-spring-boot-starter

third-spring-boot-starter-module1
third-spring-boot-starter-module1

?

【问题讨论】:

    标签: java spring spring-boot naming-conventions naming


    【解决方案1】:

    依靠Spring Boot docs的命名约定,下面的命名更接近他们的建议:

    third-spring-boot-starter-module1
    third-spring-boot-starter-module2
    

    我认为对于一个更大的组织来说,有多个首发者是很常见的情况,例如:

    third-spring-boot-starter-logging
    third-spring-boot-starter-tracing
    

    最后给出模块的实际名称,更类似于 Spring Boot 团队正在做的事情。

    【讨论】:

      猜你喜欢
      • 2021-05-07
      • 2014-04-07
      • 2016-01-29
      • 1970-01-01
      • 1970-01-01
      • 2019-06-12
      • 2015-07-07
      • 2023-04-04
      • 1970-01-01
      相关资源
      最近更新 更多