gpt4 book ai didi

maven - Grails 无法启动,卡在 postProcessBeanFactory

转载 作者:行者123 更新时间:2023-12-02 15:44:51 27 4
gpt4 key购买 nike

我正在使用我的笔记本电脑(win10),我可以毫无问题地启动我的 Grails 应用程序。
我试图也能在我的桌面(win10)上工作,但 Grails 无法启动我的应用程序。

我安装了相同的 Java 版本 (1.8) 和相同的 Grails 版本 (2.5.1),并使用 Git 克隆了我的应用程序的源代码。

我运行命令没有问题:

grails clean-all
grails refresh-dependencies

但是当我做 grails 运行应用程序 ,然后卡住:
| Dependencies refreshed.

| Compiling 10 source files

| Compiling 241 source files
Note: C:\Users\xxx\workspace\customer-portal\target\work\plugins\scaffolding-2.1.2\src\java\org\codehaus\groovy\grails\scaffolding\AbstractGrailsTemplateGenerator.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
| Compiling 32 source files

| Compiling 32 source files.....
2018-05-16/14:35:23.737 [main] INFO webxml.WebxmlGrailsPlugin - Loading default config file: class DefaultWebXmlConfig
2018-05-16/14:35:23.764 [main] WARN webxml.WebxmlGrailsPlugin - Did not find application config file: WebXmlConfig
2018-05-16/14:35:24.472 [main] INFO webxml.WebxmlGrailsPlugin - Loading default config file: class DefaultWebXmlConfig
| Running Grails application
2018-05-16/14:35:29.298 [localhost-startStop-1] INFO [localhost].[/customer_portal] - Initializing Spring root WebApplicationContextConfiguring Spring Security Core ...
... finished configuring Spring Security Core
2018-05-16/14:35:39.015 [localhost-startStop-1] INFO cache.CacheBeanPostProcessor - postProcessBeanDefinitionRegistry start
2018-05-16/14:35:39.028 [localhost-startStop-1] INFO cache.CacheBeanPostProcessor - postProcessBeanFactory

我等了超过 30 分钟,但什么也没发生,CPU 使用率为 0%。

我的桌面上可能有什么问题阻止 Grails 启动?

最佳答案

谢谢@jorge-aguilera-gonzalez 的链接。我将所有内容都设置在 配置.groovy “调试”。
我可以看到它在连接到数据库时挂起。我必须允许桌面 IP 连接到数据库(授予权限)...

现在它正在工作!

关于maven - Grails 无法启动,卡在 postProcessBeanFactory,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50363296/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com