哪个更适合命名第三方Spring Boot Starter

根据spring boot官方的说法,命名第三方spring boot启动器不应以“ 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

admanyh 回答:哪个更适合命名第三方Spring Boot Starter

根据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团队所做的工作更相似。

本文链接:https://www.f2er.com/2660104.html

大家都在问