How to run the application from the war?

I have a large war file that contains many classes with the main method.

How can I tell Java to run the main specific class?

+6
source share
1 answer

Just like starting an application from a jar file:

java -cp yourwarfile.war com.yourcompany.YourMainClass

+8
source

Source: https://habr.com/ru/post/904026/


All Articles