How to configure Async and Sync Event publishers using spring

前端 未结 4 881
北恋
北恋 2021-01-17 13:25

I am trying to implement an event framework using spring events.I came to know that the default behavior of spring event framework is sync. But during spring context initial

4条回答
  •  攒了一身酷
    2021-01-17 14:07

    I tried below tutorial :

    https://www.keyup.eu/en/blog/101-synchronous-and-asynchronous-spring-events-in-one-application

    It helps in making sync and async multicaster and creates a wrapper over these. Make sure the name of the wrapper class (DistributiveEventMulticaster) is applicationEventMulticaster

提交回复
热议问题