java.lang.ClassNotFoundException:org.eclipse.jgit.api.TransportConfigCallback with spring boot 1.5.7

java.lang.ClassNotFoundException:org.eclipse.jgit.api.TransportConfigCallback with spring boot 1.5.7,eclipse,spring-boot,Eclipse,Spring Boot,我已经将spring boot依赖项更新为最新版本(1.5.7),我再也无法启动spring boot应用程序了!我得到了这个例外 2017-09-22 19:06:59.230 ERROR 43628 --- [ main] o.s.boot.SpringApplication : Application startup failed java.lang.NoClassDefFoundError: org/eclipse/jgit/api/Tr

我已经将spring boot依赖项更新为最新版本(1.5.7),我再也无法启动spring boot应用程序了!我得到了这个例外

2017-09-22 19:06:59.230 ERROR 43628 --- [           main] o.s.boot.SpringApplication               : Application startup failed

java.lang.NoClassDefFoundError: org/eclipse/jgit/api/TransportConfigCallback
    at java.lang.Class.getDeclaredMethods0(Native Method) ~[na:1.8.0_40]
    at java.lang.Class.privateGetDeclaredMethods(Class.java:2701) ~[na:1.8.0_40]
    at java.lang.Class.getDeclaredMethods(Class.java:1975) ~[na:1.8.0_40]
    at org.springframework.util.ReflectionUtils.getDeclaredMethods(ReflectionUtils.java:613) ~[spring-core-4.3.11.RELEASE.jar:4.3.11.RELEASE]
    at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:524) ~[spring-core-4.3.11.RELEASE.jar:4.3.11.RELEASE]
    at org.springframework.util.ReflectionUtils.doWithMethods(ReflectionUtils.java:510) ~[spring-core-4.3.11.RELEASE.jar:4.3.11.RELEASE]
    at org.springframework.util.ReflectionUtils.getUniqueDeclaredMethods(ReflectionUtils.java:570) ~[spring-core-4.3.11.RELEASE.jar:4.3.11.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.getTypeForFactoryMethod(AbstractAutowireCapableBeanFactory.java:697) ~[spring-beans-4.3.11.RELEASE.jar:4.3.11.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineTargetType(AbstractAutowireCapableBeanFactory.java:640) ~[spring-beans-4.3.11.RELEASE.jar:4.3.11.RELEASE]
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:609) ~[spring-beans-4.3.11.RELEASE.jar:4.3.11.RELEASE]
    at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1484) ~[spring-beans-4.3.11.RELEASE.jar:4.3.11.RELEASE]
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:425) ~[spring-beans-4.3.11.RELEASE.jar:4.3.11.RELEASE]
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:395) ~[spring-beans-4.3.11.RELEASE.jar:4.3.11.RELEASE]
    at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:96) ~[spring-context-4.3.11.RELEASE.jar:4.3.11.RELEASE]
    at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:687) ~[spring-context-4.3.11.RELEASE.jar:4.3.11.RELEASE]
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:525) ~[spring-context-4.3.11.RELEASE.jar:4.3.11.RELEASE]
    at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122) ~[spring-boot-1.5.7.RELEASE.jar:1.5.7.RELEASE]
    at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693) [spring-boot-1.5.7.RELEASE.jar:1.5.7.RELEASE]
    at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360) [spring-boot-1.5.7.RELEASE.jar:1.5.7.RELEASE]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:303) [spring-boot-1.5.7.RELEASE.jar:1.5.7.RELEASE]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1118) [spring-boot-1.5.7.RELEASE.jar:1.5.7.RELEASE]
    at org.springframework.boot.SpringApplication.run(SpringApplication.java:1107) [spring-boot-1.5.7.RELEASE.jar:1.5.7.RELEASE]
    at com.verifone.pos.mms.MmsConfigServerApplication.main(MmsConfigServerApplication.java:12) [classes/:na]
Caused by: java.lang.ClassNotFoundException: org.eclipse.jgit.api.TransportConfigCallback
    at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[na:1.8.0_40]
    at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_40]
    at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331) ~[na:1.8.0_40]
    at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_40]
    ... 23 common frames omitted

有什么想法吗?

我终于能够通过添加以下依赖项来解决这个问题:

<!-- https://mvnrepository.com/artifact/org.eclipse.jgit/org.eclipse.jgit -->
<dependency>
    <groupId>org.eclipse.jgit</groupId>
    <artifactId>org.eclipse.jgit</artifactId>
    <version>4.8.0.201706111038-r</version>
</dependency>

org.eclipse.jgit
org.eclipse.jgit
4.8.0.201706111038-r

我终于能够通过添加以下依赖项来解决此问题:

<!-- https://mvnrepository.com/artifact/org.eclipse.jgit/org.eclipse.jgit -->
<dependency>
    <groupId>org.eclipse.jgit</groupId>
    <artifactId>org.eclipse.jgit</artifactId>
    <version>4.8.0.201706111038-r</version>
</dependency>

org.eclipse.jgit
org.eclipse.jgit
4.8.0.201706111038-r

请提供您的POM。感谢Daren的反馈。我不能用pom更新我的帖子(stackoverflow抱怨我的帖子大多包含代码!)。但是pom与使用spring初始化器和dependency cloud config.ah生成的pom相同,您至少可以提供
依赖项
?org.springframework.cloud-spring-cloud配置服务器org.springframework.boot-spring-boot-starter测试org.springframework.boot-spring-boot-starter父级1.5.7.RELEASE UTF-8 UTF-8 1.8 Dalston.SR3请提供您的POM。感谢Daren的反馈。我不能用pom更新我的帖子(stackoverflow抱怨我的帖子大多包含代码!)。但是pom与使用spring初始化器和dependency cloud config.ah生成的pom相同,您至少可以提供
依赖项
?org.springframework.cloud-spring云配置服务器org.springframework.boot-spring启动程序测试org.springframework.boot-spring启动程序父级1.5.7.RELEASE UTF-8 UTF-8 1.8 Dalston.SR3