Spring Boot in Visual Studio Code
If you run into any issues when using the features below, you can contact us by clicking the Report an issue button below.
Report an issue
A working Java environment with essential extensions installed is needed, including:
- , version 3.0 or later.
- Java Extension Pack
Create the project
The Spring Initializr extension allows you to search for dependencies and generate new Spring Boot projects.
To install, launch VS Code and from the Extensions view (), search for vscode-spring-initializr
.
Once you have the extension installed, open the Command Palette (kb(workbench.action.showCommands)
) and type Spring Initializr
to start generating a Maven or Gradle project and then follow the wizard.
Navigate to your file and right-click to select Edit starters
. The Command Palette will show the dependencies you already have beginning with a √
. You can search for other dependencies you want to add to your project. Or you can click on the existing dependencies to remove them.
Develop the application
The Spring Boot Tools extension includes rich language support for working with Spring Boot application.properties
, , and .java
files.
The extension supports quick navigate through source code, smart code completions, quick access to running apps, live application information, and code templates. Similar code completion and validation features are also available for .properties
and .yml
files.
Next steps
- To deploy your web app, see the Deploy a Java Application to Azure tutorial.
- To containerize a web app and deploy as a Docker container, check out the .