天天看點

已解決:java.lang.NoClassDefFoundError: org/springframework/core/annotation/MergedAnnotations

pring整合Junit出現的bug,記錄一下:

已解決:java.lang.NoClassDefFoundError: org/springframework/core/annotation/MergedAnnotations

問題原因:jar包版本沖突

我的pom檔案依賴:

已解決:java.lang.NoClassDefFoundError: org/springframework/core/annotation/MergedAnnotations

我的spring-text與spring-context版本不一緻(眼瞎排除了好久)

解決辦法:修改spring-test版本為5.0.2.RELEASE 或者修改spring版本為 5.2.0.RELEASE