@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).
The War/Jar files i built:-
1. ifmservice.war
2. ifmservice-jar-with-dependencies.jar
3. ifmservice-tests.jar
Help will be greatly appreciated. Thanks
Firstly,go to your target folder in your project and then type in:
java -jar your_jar_Name
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.