我有一个grails应用程序,该应用程序使用在我的build.gradle中安装了控制台的 Angular 轮廓
console "org.grails:grails-console"
我正在开发模式下运行该应用程序:
Grails application running at http://localhost:8080 in environment: development
转到http://localhost:8080/console和http://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 Security或其他安全框架。
如何使Grails控制台在我的项目上工作?
最佳答案
要使用基于Web的控制台,您需要添加插件:
compile 'org.grails.plugins:grails-console:2.1.1'
grails-console GitHub sources and docs
您的依赖性:
console "org.grails:grails-console"
适用于将在“grails console”命令后运行的基于Swing的控制台
关于grails - Grails 3.3.1控制台提供404,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47885766/