【问题标题】:Grails 2.5.0 - access classes in maven dependencyGrails 2.5.0 - 访问 Maven 依赖中的类
【发布时间】:2015-11-24 11:48:00
【问题描述】:

我需要访问 Redis 插件中没有的 Jedis 的一些功能。我在 BuildConfig.groovy 的依赖项中添加了 compile "redis.clients:jedis:2.8.0",但我的 IDE 显示 Jedis 类仍然不可用。我如何访问这些课程?

【问题讨论】:

    标签: grails grails-2.5


    【解决方案1】:

    您必须告诉您的 IDE,您的类路径结构发生了变化。

    无论您使用哪种 IDE,都应该有一种方法可以运行任何命令。喜欢 IntelliJ:Run -> Run Command

    打开该对话框并运行命令:grails refresh-dependencies

    【讨论】:

    • 做到了。所以让我等待接受答案。
    猜你喜欢
    • 2015-08-11
    • 2016-03-13
    • 2011-10-19
    • 1970-01-01
    • 1970-01-01
    • 2012-03-16
    • 2023-03-12
    • 2011-03-08
    • 2016-06-11
    相关资源
    最近更新 更多