使用@PostConstruct和自动处理MessageChannel问题,我找到了一个解决方案SmartLifecycle.start()
还可以使用CommandLineRunner吗?
在完全初始化上下文之后,使用MessageChannel rabbitMQ的最佳方式是什么?
发布于 2018-05-14 16:55:45
Spring的CommandLineRunner (或ApplicationRunner)很好。
SmartLifecycle适用于任何Spring应用程序,而不仅仅是引导应用程序。
https://stackoverflow.com/questions/50335013
复制相似问题