1
I can run the application normally by the main class with 'Tomcat Embedded' as dependency. However, when trying to run the application on some server the Eclipse IDE itself informs that the application cannot be run on a server. I recognize the ease of using Spring Boot for development and testing, but I would like to upload the application to an existing server along with other applications that would already be running on this server, without the need for another machine. Against this background, Which dependencies should I add or remove in Maven? Should I remove the main class from the application( the one with the 'main' and 'Springapplication.run' method) ? Which settings (in Java) should be added, only those that are essential for the web project.