Home  >  Article  >  Development Tools  >  Let’s talk about how to run the springboot project gracefully in vscode

Let’s talk about how to run the springboot project gracefully in vscode

青灯夜游
青灯夜游forward
2021-12-02 18:50:529559browse

How to run springboot project elegantly in vscode? The following article will introduce to you how to run the springboot project in vscode. I hope it will be helpful to friends in need!

Let’s talk about how to run the springboot project gracefully in vscode

I encountered various problems such as IDEA crashing, unable to start, cracking failure, etc. It was very frustrating and painful. I have not completely solved these problems yet. . .

However, it is no longer acceptable to go back and configure various variables of eclipse and Tomcat. Therefore, as a former front-end developer, I turned my attention to vscode.

Most tutorials on the Internet do not clearly explain what plug-ins I need to install and what configurations I need to modify if I want to run a java project or springboot project in VSC.

Then I suddenly discovered that the official website gave very thoughtful tips: https://spring.io/guides/gs/guides-with-vscode/

Let’s talk about how to run the springboot project gracefully in vscode

Then this article will show you how to run our springboot project elegantly with vscode. [Recommended learning: "vscode introductory tutorial"]

1. Download and install vscode

Without further ado, the official website will do it!

Then you can start to choose a theme you like in vscode’s market (no)

2. Install vscode’s java plug-in suite

directly into the market You can also download it by clicking the link below:

https://marketplace.visualstudio.com/items?itemName=vscjava.vscode-java-pack

Let’s talk about how to run the springboot project gracefully in vscode

3. Install the lombok plug-in

Same as IDEA, in addition to writing lombok in the pom.xml that the project depends on, you also need to install a plug-in! ! ! !

Of course, if you don’t need the features of lombok, you don’t need to install this

Search lombok directly in the market and it will come out

Let’s talk about how to run the springboot project gracefully in vscode

4. Open the springboot project and run

Let’s talk about how to run the springboot project gracefully in vscode

Let’s talk about how to run the springboot project gracefully in vscode

5. Try to see if it works~~~

Let’s talk about how to run the springboot project gracefully in vscode

6. Advantages of VSC

vscode is very lightweight, starts quickly, and almost never crashes. In fact, most functions can be completed after installing the plug-in, and the plug-in is also very rich,Themes are also rich

Secondly, the problem prompts on the operation platform are also very concise and clear. Basically, they can quickly and clearly show you where you went wrong

Let’s talk about how to run the springboot project gracefully in vscode

Third, for those who are already familiar with vscode, especially front-end development, it is full of intimacy and very smooth to use

7. Supplement: springboot suite plug-in

Booties, feel the recommendation of vsc’s treasure plug-in library! ! ! !

If your IDEA is the community version, can vscode be made comparable to the ultimate version by itself? ! ! !

Let’s talk about how to run the springboot project gracefully in vscode

For more knowledge about VSCode, please visit: vscode tutorial! !

The above is the detailed content of Let’s talk about how to run the springboot project gracefully in vscode. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:juejin.cn. If there is any infringement, please contact admin@php.cn delete