【问题标题】:Grails - Connection Closed message in Tomcat 7Grails - Tomcat 7 中的连接关闭消息
【发布时间】:2012-07-04 13:44:02
【问题描述】:

我有一个通过防火墙连接到 Oracle 数据库的 grails 应用程序。我遇到“连接已关闭”消息。

我不确定为什么会这样。我的生产数据源配置如下:

production {
  datasource {
    dbCreate = "update"
    url = ${datasource.url}
  }
}

【问题讨论】:

  • 请考虑向我们提供更多信息。它在开发模式下工作吗?用哪个数据库?您的数据库是否已启动并运行,可在 grails 外部访问?您的数据源 url 配置好了吗?

标签: oracle grails firewall


【解决方案1】:

这不是有效的语法:url = ${datasource.url}。应该是url = "${datasource.url}"datasource.url 来自哪里?如果是字符串,可以直接使用url = datasource.url

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2019-01-04
    • 1970-01-01
    • 1970-01-01
    • 2019-10-22
    • 1970-01-01
    • 1970-01-01
    • 2018-12-28
    • 1970-01-01
    相关资源
    最近更新 更多