I would like to create a Spring Boot application and let it run exactly 24 hours. After that the application should exit nicely. I could only think of achieving this goal with an infinate loop and always check current time equals start time + 24 hours. Can anybody please advise?
Please note this is NOT to schedule some tasks...