【问题标题】:Using spring mongodb 1.6.0.RELEASE in grails在 grails 中使用 spring mongodb 1.6.0.RELEASE
【发布时间】:2014-09-25 11:32:50
【问题描述】:

我将grails 2.3.7 用于我的Web 应用程序,mongoDB 用于数据存储。我为集合中的几个字段启用了全文搜索。我正在使用spring-data-mongodb-1.6.0.RELEASE's TextCriteria 来执行此操作。但是当我在 grails 中使用它时,我得到一个错误:

ERROR context.GrailsContextLoader - 初始化时出错 应用: org.codehaus.groovy.grails.commons.spring.GrailsWebApplicationContext@2fd477a0 尚未刷新。信息: org.codehaus.groovy.grails.commons.spring.GrailsWebApplicationContext@2fd477a0 尚未刷新。

我没有从日志中获得更多信息。即使我将日志级别设置为调试,这也是我所看到的。这只是1.6.0.RELEASE 的问题。它适用于较低版本。但TextCriteria 仅在1.6.0.RELEASE 中可用。所以我别无选择,只能使用这个版本。任何线索可能是什么问题?

【问题讨论】:

  • 你是在使用 mongo 插件并覆盖 deps 还是直接使用 spring-data-mongodb?
  • 我直接使用spring-data-mongodb

标签: java spring mongodb grails groovy


【解决方案1】:

当您有需要不同版本的 spring 的“spring”依赖项时,这似乎会发生。请看:https://groups.google.com/a/cloudfoundry.org/forum/#!msg/vcap-dev/ixuMoCT2tlM/aLtEdZhRPTEJ

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-11-09
    • 2015-10-02
    • 2019-03-11
    • 2016-06-19
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多