有一种情况是导入的Resource包不对,应该导入的是jakarta.annotation.Resource,但导成了javax.annotation.Resource
上述情况出现在Spring6版本,即使手工导入javax包也无法解决,参考链接http://t.csdnimg.cn/wj7WK
有一种情况是导入的Resource包不对,应该导入的是jakarta.annotation.Resource,但导成了javax.annotation.Resource
上述情况出现在Spring6版本,即使手工导入javax包也无法解决,参考链接http://t.csdnimg.cn/wj7WK