Spring Boot Studio
Spring Boot Studio is a VS Code extension that speeds up everyday work on Spring Boot applications. You design your application as a single project model (settings, database, entities, relations, REST APIs, security), and the extension generates clean, runnable Spring Boot code into your workspace and keeps it consistent as the model changes. While you work, it runs your apps, re-runs the tests affected by each change and manages the services your apps depend on.

Getting started
- Run
Boot: New Project and fill in the form: group, artifact, build tool (Maven, Gradle Groovy or Gradle Kotlin DSL), Java or Kotlin, Spring Boot and Java versions, database and developer preferences. The project is created with a Maven or Gradle wrapper, ready to run.
- In an existing project, run
Boot: Initialize Project Model. Settings are detected from pom.xml / build.gradle(.kts), the @SpringBootApplication class and application.yml / .properties.
- Change settings later with
Boot: Edit Project Settings, or edit .springboot-studio/project.json directly (with completion and validation).
- Run
Boot: Generate to write the code generated from the model. A quick pick lists every file that will be added, updated or removed. Files you changed in the workspace are left unticked, and the diff button next to each file shows exactly what would change.
Boot: Add Dependency searches Spring starters and Maven Central. The dependency is recorded in the model and inserted into your build file without touching anything else in it.
Boot: Download as ZIP exports the generated project as a standalone archive.
The Spring Boot Studio icon appears in the activity bar when the workspace contains a Spring Boot project: a Maven or Gradle build that uses Spring Boot and has a @SpringBootApplication class. It opens three views: Apps, Continuous Testing and Dev Services.
Apps
The Apps view lists the Spring Boot applications in your workspace. It supports single-module projects and multi-module Maven and Gradle builds; in a multi-module build every module is listed, and modules without a @SpringBootApplication class show as libraries.
Running an app
| Action |
How |
| Run |
▶ next to the app, or Boot: Run App |
| Run with profiles |
Right-click → Run App with Profiles..., then pick profiles found in application-<profile>.yml / .properties, or type their names |
| Stop |
■ next to a running app, or the stop button on the debug toolbar. Stop again to force it |
| Restart |
↻ next to the app, or the restart button on the debug toolbar |
| See the output |
Show App Output: every app runs in its own session, and its log appears in the Debug Console |
| Open in the browser |
🌐 next to a running app. Open Swagger UI is offered when the app uses springdoc-openapi |
Apps run with spring-boot:run (Maven) or bootRun (Gradle) through the project's wrapper, so no extra setup is needed. A module of a multi-module Maven build has its sibling modules installed first, so it always runs against their current code.
The status next to each app is tracked quietly from the Spring Boot log, without polling your app over HTTP:
- starting… until the log reports
Started … in … seconds
- :8081 (the port the web server actually bound, with the profiles in use) while it runs
- failed if startup fails, for example
APPLICATION FAILED TO START
Apps you start yourself, in a terminal or with the Java debugger, are found in the process list and show as external. You can stop them from the view too.
Endpoints, configuration and build file
Expand an app to see:
- Endpoints: every REST handler found in its Java or Kotlin sources (
@RequestMapping, @GetMapping, @PostMapping, …), with class-level paths and the context path combined. Click one to jump to its handler. The buttons next to it open the URL in the browser (GET endpoints of a running app), copy the full URL, or copy the path.
- Export Postman Collection (on the Endpoints node or the app's menu) saves all endpoints as a Postman v2.1 collection, grouped by controller, with a
{{baseUrl}} variable and Spring path variables such as {id} turned into Postman variables.
- The app's
application*.properties / .yml files and its build file, to open them quickly.
Continuous Testing
Spring Boot has no test watcher of its own, so Spring Boot Studio provides one. Turn it on, keep coding, and the tests affected by each change run in the background.
Turning it on
Click the 👁 Start Continuous Testing button in the Continuous Testing view (or run Boot: Start Continuous Testing). It runs all tests once, then watches for saved files. Stop Continuous Testing turns it off and cancels a run in progress. The setting is remembered per workspace.
What runs when you save
| You save… |
Tests that run |
| A test class |
That class |
A production class, e.g. OrderService |
OrderServiceTest, OrderServiceTests, OrderServiceIT, … and every test that refers to OrderService |
application*.yml / .properties, other resources, or the build file |
All tests of that module |
Tests that are failing are added to every run until they pass, so a fix anywhere is confirmed straight away. Several quick saves are combined into one run. Integration tests (*IT, *ITCase) only run automatically if you turn on springBootStudio.continuousTesting.includeIntegrationTests.
Reading the results
- The view lists the test classes of each module with their methods, including
@Nested classes, parameterized and repeated tests. Each class shows its Spring Boot test slice (@SpringBootTest, @WebMvcTest, @DataJpaTest, …). A failed method expands to its assertion message; click the message to open the test next to its full stack trace.
- In the editor, each test method shows
✓ 12 ms, ✗ expected: 6, but was: 7 or ○ skipped at the end of its line.
- Failures appear as errors in the Problems view.
- The status bar shows 👁 when Continuous Testing is on, then the number of passed and failed tests (red when something fails). Click it to open the view.
You can run tests by hand at any time, whether Continuous Testing is on or off: Run All Tests, Run Failed Tests, or ▶ next to a module, class or method. Boot: Run Tests in the Command Palette runs the test method at the cursor (or the whole class). The build output is in Show Test Output ("Spring Boot Tests" output channel).
Results are read from the JUnit XML reports that Maven (Surefire/Failsafe) and Gradle write, so test runs started elsewhere, from a terminal, CI scripts or another tool, update the view too.
Dev Services
The Dev Services view shows the databases, brokers and other services your apps use in development, the way Spring Boot provides them:
- Docker Compose: the services in each app's
compose.yaml (also compose.yml, docker-compose.yaml, docker-compose.yml). If the app depends on spring-boot-docker-compose, Spring Boot starts these services when the app starts and connects to them automatically. Otherwise, start them from here before running the app.
- Testcontainers: containers started by Testcontainers, for example while tests run or by a test application that uses
@ServiceConnection. The group appears when an app uses Testcontainers.
Each service shows its state and published ports. Docker and Podman are both supported; the view polls them only while it is visible.
Actions
| Action |
Where |
| Start / stop all services of a Compose file |
Buttons on the Compose file |
| Start / stop / restart one service |
Buttons and right-click menu on the service |
| Follow the logs |
Show Service Logs opens an output channel per container |
| Open the web UI |
🌐 for services that have one: RabbitMQ management, Mailpit, Neo4j Browser, Zipkin, Grafana, Keycloak, pgAdmin, … |
| Copy the connection string |
Copy button on the service |
| Copy Spring Boot properties |
Right-click → Copy Spring Boot Properties |
Expand a service to see its connection URL, username, password (hidden; click to copy), web UI, image, ports and container name. Click any detail to copy it.
Copy Spring Boot Properties gives you ready-to-paste application.properties lines built from the service's real port and credentials, for example:
spring.datasource.url=jdbc:postgresql://localhost:55432/shop
spring.datasource.username=shop
spring.datasource.password=secret
Connection details are derived for PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, MongoDB, Redis/Valkey, RabbitMQ, Kafka/Redpanda, Elasticsearch, OpenSearch, Neo4j, Cassandra, ActiveMQ/Artemis, Mailpit/MailHog, Zipkin, Grafana LGTM, Keycloak and LocalStack. Credentials come from the usual image environment variables (POSTGRES_USER, MYSQL_PASSWORD, MONGO_INITDB_ROOT_USERNAME, …), with each image's defaults when they are not set.
Settings
| Setting |
Default |
Description |
springBootStudio.continuousTesting.includeIntegrationTests |
false |
Also run integration tests (*IT, *ITCase) when a change affects them. |
springBootStudio.continuousTesting.showInlineResults |
true |
Show pass/fail results next to test methods in the editor. |
springBootStudio.containerRuntime |
auto |
Container runtime for Dev Services: auto (Docker if it is running, otherwise Podman), docker or podman. |
Requirements
- VS Code 1.105 or later
- JDK 17 or later (21+ recommended) to build and run Spring Boot 3 / 4 projects
- Maven or Gradle (generated projects include a wrapper, which is used whenever present)
- Docker or Podman, for Dev Services, Docker Compose support or Testcontainers