spring boot - 开启异步 @EnableAsync 启动报错 The bean 'xxx' could not be injected because it is a JDK dynamic proxy

解决

注解  @EnableAsync 修改为

@EnableAsync(proxyTargetClass = true)

 

posted @ 2023-08-28 13:47  岑惜  阅读(1390)  评论(0)    收藏  举报