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

岑惜 / 2023-08-28 / 原文

解决

注解  @EnableAsync 修改为

@EnableAsync(proxyTargetClass = true)