[JAVA] Run a Spring Boot project in VS Code

I wanted to do Java mob programming using LiveShare of VS Code, so I looked it up.

Preparation

Install Java Extension Pack plugin

image.png

Install Spring Boot Extension Pack plugin

image.png

Install the Lombok Annotations Support for VS Code plugin (if you use lombok)

image.png

Create a Spring Boot project

Do as per the gif image below https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-spring-initializr

Launch the Spring Boot application

When you press F5, launch.json will be created, so set the port number for debugging. image.png

Press F5 again to launch the Spring Boot application image.png

Run the test

Open the test menu and right-click on the test target-> Run Test image.png image.png

Alternatively, press Run Test on the code image.png

The test result can be confirmed as follows image.png

Recommended Posts

Run a Spring Boot project in VS Code
Java tips-Create a Spring Boot project in Gradle
How to create a Spring Boot project in IntelliJ
Java Spring environment in vs Code
Write test code in Spring Boot
Spring Boot programming with VS Code
From creating a Spring Boot project to running an application with VS Code
Launch (old) Spring Boot project in IntelliJ
Try using Spring Boot with VS Code
Create Java Spring Boot project in IntelliJ
Let's write a test code for login function in Spring Boot
Create a Spring Boot project in intellij and exit immediately after launching
A story about a Spring Boot project written in Java that supports Kotlin
Run JUnit and Spock in a maven project
How to add a classpath in Spring Boot
Make a snippet for Thymeleaf in VS Code
Create Spring Boot environment with Windows + VS Code
View the Gradle task in the Spring Boot project
[Spring Boot] How to create a project (for beginners)
How to display a browser preview in VS Code
Try gRPC in Spring Boot & Spring Cloud project (Mac OS)
Java11: Run Java code in a single file as is
Run VS Code on Docker
Spring Boot 2 multi-project in Gradle
Run LIFF with Spring Boot
Create a VS Code Plugin.
Major changes in Spring Boot 1.5
NoHttpResponseException in Spring Boot + WireMock
What I was addicted to when developing a Spring Boot application with VS Code
Until you create a Spring Boot project in Intellij and push it to Github
Spring Boot Hello World in Eclipse
Spring Boot application development in Eclipse
Spring Boot application code review points
Spring Boot: Restful API sample project
Java --Jersey Framework vs Spring Boot
Implement REST API in Spring Boot
What is @Autowired in Spring boot?
Implement Spring Boot application in Gradle
A memo that touched Spring Boot
Thymeleaf usage notes in Spring Boot
RSocket is supported in Spring Boot 2.2, so give it a try
How to make a hinadan for a Spring Boot project using SPRING INITIALIZR
Sample code that uses the Mustache template engine in Spring Boot
Get a proxy instance of the component itself in Spring Boot
Fitted in Spring Boot using a bean definition file named application.xml
Sample code to unit test a Spring Boot controller with MockMvc
[Spring Boot] Until @Autowired is run in the test class [JUnit5]
What is a Spring Boot .original file?
Create a Spring Boot app development project with the cURL + tar command
Build Spring Boot + Docker image in Gradle
Static file access priority in Spring boot
Autowired fields in a class that inherits TextWebSocketHandler in Spring Boot become NULL
Output Spring Boot log in json format
Personal memo Run Spring Boot + Gradle web project with Codenvy (Eclipse Che)
Local file download memorandum in Spring Boot
Loosen Thymeleaf syntax checking in Spring Boot
Automatically deploy a web application developed in Java using Jenkins [Spring Boot application]
[Practice! ] Display Hello World in Spring Boot
Use DynamoDB query method in Spring Boot
DI SessionScope Bean in Spring Boot 2 Filter
Change session timeout time in Spring Boot