Spring的@Resource获取bean对象报错:java.lang.NoSuchMethodError: javax.annotation.Resource.lookup()Ljava/lang
【1】今天写项目的时候突然碰到了一个错,之前本来是通过@Autowired注解获取对象的,然是后来我改成了@Resource注解就开始报错了
严重: Caught exception while allowing TestExecutionListener [org.springframework.test.context.support.DependencyInjectionTestExecutionListener@6e0e048a] to prepare test instance [com.kk
原创
2021-11-21 14:11:42 ·
744 阅读 ·
0 评论