首页
it技术
登录
6mi
u
盘
搜
搜 索
it技术
Springboot注解@Async无效
Springboot注解@Async无效
it
2024-05-06
47
1.
在
@SpringBootApplication
启动类 添加注解
@EnableAsync
2.
异步方法使用注解
@Async
,
返回值为
void
或者Future
3.
异步方法和调用方法写在不同的类中
,
如果写在一个类中是无效的
转载请注明原文地址: https://lol.8miu.com/read-16075.html
最新回复
(
0
)