Integrating Gatling with Spring Boot

Hi Team,

Just wanted to check, is it possible to okay to integrate Gatling entry point(main method) with java class? I am trying to integrate Gatling with spring boot application and will be hitting simulations using rest api exposed via spring boot.
One more thing, why are we calling system.exit after ending simulation iterations? I am not sure what is use of calling system exit but can I override this?

Thanks
Richhpal

Just wanted to check, if we can run multiple instance of Gatling object using multiple threads in java. I am triggering gatling with the use of restApi and there can be multiple threads calling Gatling Object.
Please help!