需要异步执行的方法上面使用 @Async 注解标注,若bean中所有的方法都需要异步执行,可以直接将 @Async 加载类上。 将 @EnableAsync 添加在spring配置类上 ...
確定! 回上一頁