Closed talkingscott closed 4 years ago
I asked Greg Turnquist to review this one, too. We don't usually add an exit call.
Messaging with Redis calls exit, which is where I got the idea. I see that Messaging with RabbitMQ calls close: SpringApplication.run(MessagingRabbitmqApplication.class, args).close();
. That looks more idiomatic.
The guide already refers to
findByTeammatesName
and its use inmain()
, but the code does not match the text. This PR adds that method to the repository class and uses it in theCommandLineRunner
. I additionally callSystem.exit(0)
frommain()
as otherwise active threads leave the application running after the return.