我输入grails run-app,它开始运行,但它被消息卡住了:
----------------------------------------
Current config:
baseDir: db/migration/global
env: DEVELOPMENT
dataSource: default
url: jdbc:postgresql://localhost:5432/mydbapp
username: postgres
schemas: public
----------------------------------------
Configuring Spring Security Core ...
... finished configuring Spring Security Core
Configuring Spring Security REST ...
... finished configuring Spring Security REST它在一个小时前运行得很好。没有奇怪的木头或任何东西。此外,当在终端中点击ctrl+c时,grails将关闭,但当我再次使用run-app时,它将显示如下内容:
Error Server failed to start for port 8080: Address already in use (Use --stacktrace to see the full trace)这表明grails并没有真正被终止。当然,我关闭了占用8080的应用程序,并再次运行应用程序,但它仍然卡住了。
发布于 2016-08-18 16:05:25
发布于 2016-08-22 01:01:56
在BuildConfig.groovy中,更改您的应用程序端口。示例:
grails.server.port.http = 8003如果端口仍在使用中,请退出IntelliJ,转到任务管理器,按已用内存排序,使用IntelliJ或Grails结束所有进程。
发布于 2021-03-15 21:54:32
如果你正在使用liquibase数据库迁移工具,如果你在它完成之前以某种方式停止了它,它将在DATABASECHANGELOGLOCK表上放置一个锁。将其更改为LOCKED = false,它将启动。
https://stackoverflow.com/questions/39001378
复制相似问题