仅当通过运行应用程序或作为部署在嵌入式tomcat上的war文件在生产环境中运行应用程序时,Grails控制台插件页面才不会在UI上呈现任何内容。
Grails版本-3.2.4
build.gradle看起来像这样:
buildscript {
repositories {
mavenLocal()
maven { url "https://repo.grails.org/grails/core" }
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
....
classpath "com.bertramlabs.plugins:asset-pipeline-gradle:2.13.1"
...
}
}
version "0.1"
apply plugin: "asset-pipeline"
repositories {
mavenLocal()
maven { url "https://repo.grails.org/grails/core" }
maven { url "http://repo1.maven.org/maven2" }
}
dependencies {
....
runtime 'org.grails.plugins:grails-console:2.0.9'
runtime "com.bertramlabs.plugins:asset-pipeline-grails:2.13.1"
....
}
有什么想法怎么了?
最佳答案
默认情况下,出于明显的原因,该插件在生产中处于禁用状态(攻击者可以对您的应用执行任何操作)-但是,如果您了解风险并加以保护,则可以重新启用它。在此处查阅文档https://github.com/sheehan/grails-console#security
关于grails - Grails 3:控制台插件不在生产模式下出现,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43980327/