【问题标题】:How to import spring source code into eclipse to be able to read it?如何将spring源代码导入eclipse才能读取?
【发布时间】:2015-01-12 10:34:52
【问题描述】:

如何使用 gradle 将 spring 源代码导入 Eclipse?
我想拥有 CTRL+SHIFT+G 功能。
非常感谢任何形式的帮助。

【问题讨论】:

    标签: spring gradle


    【解决方案1】:

    您可以使用 Eclipse Class Decompiler Plugin。您可以在 eclipse Marketplace 上找到它,使用它您可以查看编译器 jars/class 文件的源代码。

    【讨论】:

      【解决方案2】:

      假设您有一个依赖于 Spring 库的 Gradle 项目,然后将其导入 Eclipse,则源代码应该可用。至少这是可以自定义的默认行为,如 http://www.gradle.org/docs/current/dsl/org.gradle.plugins.ide.eclipse.model.EclipseClasspath.html 所示(此页面链接自 Gradle 用户指南 - http://www.gradle.org/docs/current/userguide/eclipse_plugin.html

      【讨论】:

        【解决方案3】:

        感谢您的建议,但这对我有用(使用 gradle):

        dependencies {
            compile 'org.springframework:spring-context:4.1.4.RELEASE'
        }
        

        最好的问候,
        错别字

        【讨论】:

          猜你喜欢
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2019-11-03
          • 2019-05-23
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          相关资源
          最近更新 更多