Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

Running a "fat" spring-boot war as an application

$
0
0

Hi,

 

there is something strange with running "fat" Spring Boot applications (i.e. these can be run as stand-alone applications or in a web container) e.g. https://github.com/spring-guides/gs-convert-jar-to-war-maven.git. Just import the project and run main in class Application. It seems to close the application context immediately and exits.

 

If one removes dependency

dependency>
    <groupId>org.springframework.boot</groupId>
    <artifactId>spring-boot-starter-tomcat</artifactId>
    <scope>provided</scope>
</dependency>

then the application does run. It would be great if Intellij would support both modes. Any ideas what is wrong with this setup?

Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>