哪个更好的名字叫第三方spring boot starter

问题描述 投票:0回答:1

根据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

java spring spring-boot naming-conventions naming
1个回答
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团队正在做的事情更相似。

© www.soinside.com 2019 - 2024. All rights reserved.