Skip to main content

Command Palette

Search for a command to run...

Build your First Java Spring Boot Application Using Visual Studio Code

Published
2 min read
Build your First Java Spring Boot Application Using Visual Studio Code
B

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

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.

  1. First plugin is for Java: Java Extension Pack by Microsoft

  2. Second 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!!

B

Harbinder Singh You can learn #Java from the below free websites: https://www.w3schools.com/java/ https://www.programiz.com/java-programming https://www.javatpoint.com/java-tutorial https://www.freecodecamp.org/news/learn-java-free-java-courses-for-beginners/

1
H

Thanks for sharing useful resources.

1
B

Harbinder Singh You are welcome! 😇

H

Can you made a blog on "first java project experience" that where to learn and how to build a project.

1

More from this blog

Balaji's Blog

23 posts

Tech Enthusiast || Certified AWS Cloud Practioner || Master's degree from Dalhousie University