【问题标题】:The hierarchy of the type CLASSNAME is inconsistent when extending DefaultFtpSessionFactory扩展 DefaultFtpSessionFactory 时 CLASSNAME 类型的层次结构不一致
【发布时间】:2016-03-22 21:37:13
【问题描述】:

我是 Spring 新手,我面临一个真正的问题,我不知道如何解决

当我扩展 DefaultFtpSessionFactory 时,编译器会生气地告诉我 The hierarchy of the type CLASSNAME is inconsistent

我搜索了很多,发现当需要的类不在构建路径中时,可能会发生这种情况。

有人知道如何处理这种编译问题吗?

提前致谢。

【问题讨论】:

  • 请发布出现错误的行。
  • 由于我不能在这里发布快照,我会写它public class FtpClass extends DefaultFtpsSessionFactory 它给The hierarchy of the type CLASSNAME is inconsistentFtpClass下面

标签: java spring ftp spring-integration


【解决方案1】:

我想知道您是否使用了一些有用的依赖管理工具,例如 Maven 或 Gradle,并将 spring-integration-ftp 作为您的项目的依赖项,并允许该工具获取所需的传递依赖项。

【讨论】:

  • 我尝试过这种方式,但不幸的是没有任何改变。
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2012-08-06
  • 1970-01-01
  • 2016-08-26
  • 1970-01-01
相关资源
最近更新 更多