Is It possible to support sync and async Application Events in Spring[5]
问题 <bean id="applicationEventMulticaster" class="com.test.listener.CustomApplicationEventMulticaster"> <property name="taskExecutor" > <bean class="org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor"> <property name="maxPoolSize" value="10"/> <property name="corePoolSize" value="10"/> <property name="waitForTasksToCompleteOnShutdown" value="true"/> <property name="awaitTerminationSeconds" value="200"/> </bean> </property> </bean> public class CustomApplicationEventMulticaster