根据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
?
根据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团队正在做的事情更相似。