美文网首页
Correct the classpath of your ap

Correct the classpath of your ap

作者: wanice冰 | 来源:发表于2019-02-14 17:42 被阅读0次
31.png

日志出现警告:
WARN org.springframework.boot.web.servlet.context.AnnotationConfigServletWebServerApplicationContext -Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Failed to start bean 'documentationPluginsBootstrapper'; nested exception is java.lang.NoSuchMethodError: org.springframework.plugin.core.PluginRegistry.getPluginFor(Ljava/lang/Object;Lorg/springframework/plugin/core/Plugin;)Lorg/springframework/plugin/core/Plugin;

发现原来是因为引入了swagger2,
今早spring更新了jar包


32.png

删除了里面的某些方法getPluginFor,导致的。
删除pom引入,启动成功。

相关文章

网友评论

      本文标题:Correct the classpath of your ap

      本文链接:https://www.haomeiwen.com/subject/glqyeqtx.html