我是靠谱客的博主 光亮星月,这篇文章主要介绍AnnotatedElementUtils.findMergedAnnotation,现在分享给大家,希望可以做个参考。

关于MongoDB,有一个核心操作类:MongoTemplate,使用这个MongoDB模板类可以很方便的对MongoDB数据进行CRUD操作,而这个类位于spring-data-mongodb这个jar包下,所以在使用maven进行web开发时,我们需要在pom.xml下引入依赖。

<dependency>
    <groupId>org.springframework.data</groupId>
    <artifactId>spring-data-mongodb</artifactId>
    <version>2.0.8.RELEASE</version>
</dependency>
	
<dependency>
    <groupId>org.mongodb</groupId>
    <artifactId>mongo-java-driver</artifactId>
    <version>3.8.0</version>
</dependency>

在操作过程中,老是出现如下错误:

java.lang.NoSuchMethodError:org.springframework.core.annotation.AnnotatedElementUtils.findMergedAnnotation(Ljava/lang/reflect/AnnotatedElement;Ljava/lang/Class;)

最后

以上就是光亮星月最近收集整理的关于AnnotatedElementUtils.findMergedAnnotation的全部内容,更多相关AnnotatedElementUtils内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(56)

评论列表共有 0 条评论

立即
投稿
返回
顶部