From TypeScript to Spring Boot: a small developer convenience I missed
Описание и применение
Микросервисный стартер для Spring Boot автоматически выводит URL Swagger UI после запуска, облегчая разработчикам поиск документации при локальной работе.
Задача
Spring Boot developers lack a convenient way to see the Swagger UI URL after startup, unlike Node/Express projects that print it automatically.
Результат
The starter provides a single, reusable component that prints the correct Swagger UI URL after startup, improving developer experience and reducing duplicated startup logic across multiple services.
Рабочий процесс
- Add dependency io.github.dydent:swagger-ui-link-spring-boot-starter:0.1.0 to pom.xml or build.gradle.
- Enable the starter in application-local.yml: swagger-ui-link.enabled: true.
- Run the application with the local profile active (e.g., spring.profiles.active=local).
- The console prints the resolved Swagger UI URL (e.g., http://localhost:8083/api/importer/swagger-ui).
Доказательства
The starter prints the configured Swagger UI URL immediately after application startup, including the custom port and context path.
The dependency does not install Swagger UI. It reports the address of the UI your application already serves.
- Дата записи: 2026-09-06T23:52:16.257Z