0

I'm trying to generate AOT data for a Spring Boot 3 application. When I run mvn -Pnative native:compile the Spring application is started using org.springframework.boot.SpringApplicationAotProcessor. The problem is that the process doesn't quit even after the main method is finished. I copied the class to my code, using the original package, i.e. overwriting it, and added System.exit(0); to the main method and it works. So that's a workaround but it doesn't feel right.

Pragmatick
  • 130
  • 16

0 Answers0