Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to import a springboot project into a jar package and run it

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/01 Report--

This article mainly introduces the springboot project how to lead into the jar package and run the relevant knowledge, the content is detailed and easy to understand, the operation is simple and fast, has a certain reference value, I believe that everyone after reading this springboot project how to lead into the jar package and run the article will have a harvest, let's take a look.

Springboot's jar package is embedded with tomcat, so as long as it is exported, it can be run directly.

two。 Then go to the pom.xml folder of IDEA and add a packaging tag

0.0.1-SNAPSHOT jar

Select Maven Projects in the lower left corner of idea, clean first, and double-click package to start packaging.

four。 When you finish running, you will find that there is an extra target folder in the project, which contains the generated jar package.

5. window + R calls up the running window, then cmd, enter the location of the jar package, and then java-jar plus the name of the jar package, the jar package runs successfully in the background!

six。 If it runs successfully, you have finished running the jar package! You can happily enter http://localhost:8080/*** in the browser.

seven。 To stop the jar package from running is to find the java.exe in the task manager and pause the task.

This is the end of the article on "how springboot projects lead to jar packages and run". Thank you for reading! I believe you all have a certain understanding of the knowledge of "how springboot projects lead to jar packages and run". If you want to learn more, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report