@Async asynchronous non-execution problem in Spring

Don't use the idea to break points to test!

Don't use the idea to break points to test!

Don't use the idea to break points to test!

The correct way: Use Thread.sleep(10000); in the asynchronous annotation @Async method to pause, and then observe the effect.

Guess you like

Origin blog.csdn.net/fomeiherz/article/details/105779955