How to terminate springboot application programmatically on cloud foundry?

125 views Asked by At

I need to terminate a springboot function programmatically with something like System.exit(-1); when running.

When I ran the app on my laptop, it could terminate at where I put "System.exit(-1);", but when I packaged it and ran it on cloud foundry, it just ignored the "System.exit(-1);" and keep running.

Is there anyway to terminate the app programmatically when it runs on cloud foundry?

0

There are 0 answers