I noticed a big difference in the startup time of my Spring Boot application when starting with Maven and as jar. For example:
mvn spring-boot:run- 5 secondsjava -jar myapp.jar- 25 seconds
Starting the jar file takes like 5 times longer. Why is it so? What is happening in the background when starting the application with Maven and as jar? Is something loaded differently? And is it possible to start the jar file for the time used by Maven?