# Running Gatling in Spring Boot

**URL:** <https://community.gatling.io/t/running-gatling-in-spring-boot/4424>\
**Category:** Gatling (Open-Source)\
**Created:** [July 17, 2018, 2:50pm UTC](https://community.gatling.io/t/running-gatling-in-spring-boot/4424 "2018-07-17T14:50:06Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![eric.friedman](https://avatars.discourse-cdn.com/v4/letter/e/e8c25b/32.png) [@eric.friedman](https://community.gatling.io/u/eric.friedman)\
**Post date:** [July 17, 2018, 2:50pm UTC](https://community.gatling.io/t/running-gatling-in-spring-boot/4424/1 "2018-07-17T14:50:06Z")

</div>

Hi all,

I have a need to invoke Gatling from Spring Boot via scheduled processes running scenarios. I am able to do this, but when a scenario is done, Gatling calls system.exit. I could modify Gatling.scala (well, I would need to look at your license first) but I would rather not. I guess a work around would be to have Spring run Gatling with a command line script.

Is there another public entry point to Gatling to run a scenario other than Gatling.main? Would it be possible to have a parameter to override the sys.exit?

Thanks and regards,

Eric

---

<div class="post-metadata">

**Author:** ![rusmancool](https://avatars.discourse-cdn.com/v4/letter/r/13edae/32.png) [@rusmancool](https://community.gatling.io/u/rusmancool)\
**Post date:** [September 29, 2022, 3:11am UTC](https://community.gatling.io/t/running-gatling-in-spring-boot/4424/2 "2022-09-29T03:11:04Z")

</div>

Hi Eric,  
Could you share how you are triggering Gatling simulation from Spring Boot?
