How to automatically execute a commandline when STOPPING a Spring Boot-app?
Answered
Hi everyone,
I have a run-config for a Spring Boot-app that automatically starts some process using the “Add before launch task”. That process runs in the background and I would like it to stop at least whenever I manually stop the Spring Boot-app using the corresponding buttin the IDE. It's just as easy as executing “taskkill /IM MailHog.exe /F”, but I can't find any event or something where to actually execute that command.
So, is there something able to automatically execute a command when stopping the Spring Boot-app manually?
Thanks!
Please sign in to leave a comment.
Hello,
Currently it's not possible. Please vote for the related request on YouTrack: https://youtrack.jetbrains.com/issue/IDEA-132501 and follow it for updates.