Build your First Java Spring Boot Application Using Visual Studio Code

Tech Enthusiast
Firstly, please make sure you have downloaded the java jdk latest version and not getting any error when checking for version: java --version
- If you are getting an error, please consider watching this blog to fix it: https://balajisomasale.hashnode.dev/july-2023-solved-javac-is-not-recognized-as-an-internal-or-external-command-operable-program-or-batch-file
Installing Visual studio code:
Link: https://go.microsoft.com/fwlink/?LinkID=534107
Once the installation is complete, you need to install 2 plugins inside VS Code editor.
First plugin is for Java:
Java Extension Packby MicrosoftSecond Plugin is for Spring Boot:
Spring boot extension pack
Note: This will install 3 plugins by default:
Spring Boot Tools,Spring Boot Dashboard&Spring Initializr Java
Creating a Java Spring Boot Project:
Please navigate to Explorer on top-left side bar, you will see the Java Project option.

Choose Spring Boot

Choose Maven Project and then choose any snapshot with Java language:

Choose any group id as per your wish:

Choose Artifact ID

choose dependencies as Spring Web then choose the directory of your project

In the Bottom right side, we can see something as below:

Select Run Java by right clicking it

Congratulations!! You have setup and executed your First Spring Boot application from VS Code editor!
If you find this Blog helpful, please drop a like to this Blog! Thank you!!




