小编Gab*_*ira的帖子

更新版本到2.7.0时启动Springboot时出错“尝试调用不存在的方法”

我将Springboot版本更新到2.7.0,返回错误后:

\n

描述:

\n
An attempt was made to call a method that does not exist. The attempt was made from the following location:\n\n    org.webjars.WebJarAssetLocator.scanForWebJars(WebJarAssetLocator.java:183)\n\nThe following method did not exist:\n\n    \'io.github.classgraph.ClassGraph io.github.classgraph.ClassGraph.acceptPaths(java.lang.String[])\'\n\nThe calling method\'s class, org.webjars.WebJarAssetLocator, was loaded from the following location:\n\n    jar:file:/home/gabriel/.m2/repository/org/webjars/webjars-locator-core/0.50/webjars-locator-core-0.50.jar!/org/webjars/WebJarAssetLocator.class\n\nThe called method\'s class, io.github.classgraph.ClassGraph, is available from the following locations:\n\n    jar:file:/home/gabriel/.m2/repository/io/github/classgraph/classgraph/4.8.69/classgraph-4.8.69.jar!/io/github/classgraph/ClassGraph.class\n\nThe called method\'s class hierarchy was loaded from the following locations:\n\n    io.github.classgraph.ClassGraph: file:/home/gabriel/.m2/repository/io/github/classgraph/classgraph/4.8.69/classgraph-4.8.69.jar\n\n\nAction:\n\nCorrect the classpath of your application so that it contains compatible versions of the classes …
Run Code Online (Sandbox Code Playgroud)

java maven spring-boot

26
推荐指数
4
解决办法
4万
查看次数

标签 统计

java ×1

maven ×1

spring-boot ×1