Spring XML equivalent of @EnableAsync

后端 未结 3 813
清歌不尽
清歌不尽 2021-01-11 13:48

Is there a way to turn on Spring\'s Async configuration from XML? All the examples I saw are using programmatic context declaration and use @EnableAsync

3条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-11 14:14

    Yes, you can use something like this

     
         
         
         
         
     
    

    According to the Spring documentation, this is equivalent to using @EnableAsync

提交回复
热议问题