qq_36392533
qq_36392533
2018-05-09 08:25
采纳率: 50%
浏览 4.2k
已采纳

spring cloud config 用git 做远程仓库配置中心启动报错

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'spring.cloud.config.server.git-org.springframework.cloud.config.server.ssh.SshUriProperties': Could not bind properties to SshUriProperties (prefix=spring.cloud.config.server.git, ignoreInvalidFields=false, ignoreUnknownFields=true, ignoreNestedProperties=false); nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.cloud.config.server.ssh.PrivateKeyValidator': Failed to introspect bean class [org.springframework.cloud.config.server.ssh.PrivateKeyValidator] for lookup method metadata: could not find class that it depends on; nested exception is java.lang.NoClassDefFoundError: com/jcraft/jsch/JSchException

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.cloud.config.server.ssh.PrivateKeyValidator': Failed to introspect bean class [org.springframework.cloud.config.server.ssh.PrivateKeyValidator] for lookup method metadata: could not find class that it depends on; nested exception is java.lang.NoClassDefFoundError: com/jcraft/jsch/JSchException

Caused by: java.lang.ClassNotFoundException: com.jcraft.jsch.JSchException
at java.net.URLClassLoader.findClass(URLClassLoader.java:381) ~[na:1.8.0_144]
at java.lang.ClassLoader.loadClass(ClassLoader.java:424) ~[na:1.8.0_144]
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:335) ~[na:1.8.0_144]
at java.lang.ClassLoader.loadClass(ClassLoader.java:357) ~[na:1.8.0_144]
... 79 common frames omitted

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

3条回答 默认 最新

  • anmin_ren
    art_ren 2018-05-09 08:31
    已采纳

    ClassNotFoundException是少依赖包的
    com/jcraft/jsch/JSchException 查查这个文件对应的class

    点赞 评论
  • qq_17017965
    qq_17017965 2018-05-09 08:28

    Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.cloud.config.server.ssh.PrivateKeyValidator': Failed to introspect bean class [org.springframework.cloud.config.server.ssh.PrivateKeyValidator] for lookup method metadata: could not find class that

    点赞 评论
  • qq_40515467
    qq_40515467 2018-05-09 08:35

    ClassNotFoundException是少依赖包的

    点赞 评论

相关推荐