Windows program background Run

Source: Internet
Author: User


Background run configuration for Spring boot app

sort out some of the ways that spring boot background runs. Before we introduce the background run configuration, let's review some of the ways that the spring Boot app works:

    • Run the Spring boot application main class

    • Use MAVEN's spring boot plugin MVN Spring-boot:run to run

    • into a jar package, use java-jar run

When we develop, we usually use the first two, but we often use a third when we deploy. However, we are Java -jar not running in the background when we use it to run. Let's take a look at the windows and Linux/unix two environments and how to configure how the background runs.

Windows

Windows is simple, we can directly use this software: AlwaysUp . As shown, simple, violent, and useful.

650) this.width=650; "src=" Http://blog.didispace.com/assets/alwaysup-1.png "style=" Border:none;margin:auto; Padding:0px;font-weight:inherit;font-style:inherit;font-family:inherit;vertical-align:baseline;height:auto; "/ >

The configuration is simple and we just need to get the spring boot app throughmvn installMake a jar package, and then write ajava -jar yourapp.jarThe bat file. Open it again.AlwaysUp, click the first button on the toolbar, as shown, select the bat file you wrote above and fill in the service name.

650) this.width=650; "src=" Http://blog.didispace.com/assets/alwaysup-2.png "style=" Border:none;margin:auto; Padding:0px;font-weight:inherit;font-style:inherit;font-family:inherit;vertical-align:baseline;height:auto; "/ >

Once created, you can see the services we have configured in the list, and you can start the app in the background by right-clicking the selection Start xxx .


This article from "10,000 years too long, seize" blog, please be sure to keep this source http://zengwj1949.blog.51cto.com/10747365/1944648

Windows program background Run

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.