简体   繁体   English

从后台运行引导服务程序的命令(通过命令行)

[英]Command to run boot service program from background (through command line)

@SpringBootApplication

public class IFMApp extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication.run(IFMApp.class, args);
    }

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder builder) {
        return builder.sources(IFMApp.class);
    }
}

I want to run above boot service program (IFMApp) through the command line (linux terminal).我想通过命令行(linux终端)在引导服务程序(IFMApp)之上运行。

The War/Jar files i built:-我构建的 War/Jar 文件:-

1. ifmservice.war 1. ifmservice.war

2. ifmservice-jar-with-dependencies.jar 2. ifmservice-jar-with-dependencies.jar

3. ifmservice-tests.jar 3. ifmservice-tests.jar

Help will be greatly appreciated.帮助将不胜感激。 Thanks谢谢

Firstly,go to your target folder in your project and then type in:首先,go 到您项目中的目标文件夹,然后输入:

java -jar your_jar_Name java -jar your_jar_Name

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM