【问题标题】:Grails 3 run-app doesn't return after bootRunGrails 3 run-app 在 bootRun 后不返回
【发布时间】:2015-07-08 16:33:30
【问题描述】:

我一直在使用 Grails 3.0.1 交互式控制台,当我键入“run-app”命令时,我希望它会启动服务器并返回到提示符。相反,它做了类似的事情:

grails> run-app
> Configuring > 1/1 projects > Resolving dependencies ':agent' > Resolving dependencies ':versio
:compileJava UP-TO-DATE
> Building 16% > :compileGroovy > Resolving dependencies ':compile' > Resolving dependencies 'de
:compileGroovy UP-TO-DATE
:processResources
:classes
:findMainClass
> Building 83% > :bootRun > Resolving dependencies ':runtime' > Resolving dependencies 'detached:bootRun
Grails application running at http://localhost:8080
> Building 83% > :bootRun

此时系统一直等到我按下 Ctrl-C。我以为系统会启动,然后返回提示。我错过了什么明显的东西吗?我只需要等待吗?

【问题讨论】:

  • 我一直通过 gradle 而不是 grails 交互式提示运行我的应用程序,我得到了相同的行为。
  • 这里有同样的问题。还没找到解决办法。
  • 标题显示“run-app 在 bootRun 后不返回”。我了解控制台未返回的问题,但您是说应用程序实际上并未运行?
  • 应用程序运行,但锁定了控制台,因此停止它的唯一方法是 ctrl-c。在以前的版本中,即使在运行时也会得到提示。

标签: grails grails-3.0


【解决方案1】:

这是来自 Spring Boot 的 inherited bug,现已修复,可能会在下一个版本 3.0.3 中提供。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-06-08
    • 1970-01-01
    相关资源
    最近更新 更多