Build Spring Boot Apps with VS Code
Visual Studio Code is an ideal lightweight development environment for Spring Boot developers using extensions including:
Spring Initializr allows you to search for dependencies and generate Spring Boot project.
To install, launch VS Code and from the Extensions view (⇧⌘X (Windows, Linux Ctrl+Shift+X)) search box, type
Once you have the extension installed, open the Command Palette (⇧⌘P (Windows, Linux Ctrl+Shift+P)), type
Spring Initializr to start generating a Maven or Gradle project and then follow the wizard.
Spring Boot Support extension including language server provides support for working with Spring Boot
The extension supports quick-navigate through source code, quick-access for running apps, show live application information and smart code completion. Similiar completion and validation features are also available for
You can press F5 to run your application. After setting a breakpoint in your source code, refresh your browser to hit the breakpoint. Details about debugging can be found in Java Debugging
- If you'd like to learn how to deploy your web application, check out the Deploy a Java Application to Azure Web App tutorial where we show how to run your web app in the cloud.
- To see how you can containerize the web app and deploy to the cloud as a Docker container, check out Java Container Tutorial.
- To learn more about Java Debugging features, see Java Debugging Tutorial.