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

Windows program runs in the background

2025-02-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

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

Background running configuration of Spring Boot application

Sort out some configurations about how spring Boot runs in the background. Before introducing the background running configuration, let's review several operation modes of Spring Boot applications:

Application main class running Spring Boot

Use Maven's Spring Boot plug-in mvn spring-boot:run to run

Once packed into a jar package, run it using java-jar

We usually use the first two when we develop, and the third when we deploy. However, when we use Java-jar to run, it is not running in the background. Let's sort out how to configure background running for Windows and Linux/Unix respectively.

Windows

Windows is relatively simple, we can directly use this software: AlwaysUp. As shown in the following figure, it is simple, violent and easy to use.

Configuration is very simple, we just need to mvn install the Spring Boot application into a jar package, and then write a java-jar yourapp.jar bat file. Open AlwaysUp again, click the first button on the toolbar, as shown in the following figure, select the bat file written above, and fill in the service name.

After the creation is completed, you can see our configured service in the list. By right-selecting Start xxx, you can launch the application in the background.

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

Servers

Wechat

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

12
Report