In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.