Grails 3.3.1控制台给出404

问题描述 投票:0回答:1

我有一个grails应用程序使用角度配置文件,我的build.gradle中安装了控制台

console "org.grails:grails-console"

我在开发模式下运行应用程序:

Grails application running at http://localhost:8080 in environment: development

当去http://localhost:8080/consolehttp://localhost:8080/static/console时,控制台没有显示。使用Chrome控制台,我发现发生了404错误:

Request URL:http://localhost:8080/static/console
Request Method:GET
Status Code:404 
Remote Address:[::1]:8080
Referrer Policy:no-referrer-when-downgrade

我没有可能干扰控制台的自定义拦截器,也没有使用Spring安全性或其他安全框架。

如何让Grails控制台在我的项目上工作?

grails grails-plugin
1个回答
1
投票

要使用基于Web的控制台,您需要添加插件:

compile 'org.grails.plugins:grails-console:2.1.1'

grails-console GitHub sources and docs

你的依赖:

console "org.grails:grails-console"

适用于将在“grails console”命令之后运行的基于Swing的控制台

© www.soinside.com 2019 - 2024. All rights reserved.