我已经将小型应用程序从Grails 2.2升级到Grails 3.2.3。解决编译问题后,一切看起来都正常,但bootRun失败了,原因不明。
我的< code>build.gradle:
buildscript {
repositories {
maven { url "https://repo.grails.org/grails/core" }
maven { url "http://repository.jboss.com/maven2/" }
maven { url "http://repo1.maven.org/maven2/" }
maven { url "http://repo.spring.io/milestone/" }
}
dependencies {
classpath "org.grails:grails-gradle-plugin:$grailsVersion"
classpath "com.bertramlabs.plugins:asset-pipeline-gradle:2.11.6"
classpath "org.grails.plugins:hibernate5:6.0.4"
}
}
version "0.1"
group "testmonitor"
apply plugin:"eclipse"
apply plugin:"idea"
apply plugin:"war"
apply plugin:"org.grails.grails-web"
apply plugin:"org.grails.grails-gsp"
apply plugin:"asset-pipeline"
repositories {
mavenLocal()
maven { url "https://repo.grails.org/grails/core" }
maven { url "http://repository.jboss.com/maven2/" }
maven { url "http://repo1.maven.org/maven2/" }
maven { url "http://repo.spring.io/milestone/" }
}
dependencyManagement {
imports {
mavenBom "org.grails:grails-bom:$grailsVersion"
}
applyMavenExclusions false
}
dependencies {
compile "org.springframework.boot:spring-boot-starter-logging"
compile "org.springframework.boot:spring-boot-autoconfigure"
compile "org.grails:grails-core"
compile "org.springframework.boot:spring-boot-starter-actuator"
compile "org.springframework.boot:spring-boot-starter-tomcat"
compile "org.grails:grails-dependencies"
compile "org.grails:grails-web-boot"
compile "org.grails.plugins:cache"
compile "org.grails.plugins:hibernate5"
compile "org.hibernate:hibernate-core:5.1.2.Final"
compile "org.hibernate:hibernate-ehcache:5.1.2.Final"
compile 'org.grails.plugins:spring-security-core:3.1.1'
compile "org.grails.plugins:quartz:2.0.1"
compile 'org.grails:grails-datastore-rest-client'
profile "org.grails.profiles:web"
runtime "com.bertramlabs.plugins:asset-pipeline-grails:2.11.6"
runtime "com.h2database:h2"
compile 'org.apache.commons:commons-math3:3.6.1'
compile group: 'org.codehaus.groovy.modules.http-builder', name: 'http-builder', version: '0.7.1'
compile 'net.sf.opencsv:opencsv:2.3'
console "org.grails:grails-console"
runtime "com.bertramlabs.plugins:asset-pipeline-grails:2.11.6"
runtime 'mysql:mysql-connector-java:5.1.29'
testCompile "org.grails:grails-plugin-testing"
testCompile "org.grails.plugins:geb"
testRuntime "org.seleniumhq.selenium:selenium-htmlunit-driver:2.47.1"
testRuntime "net.sourceforge.htmlunit:htmlunit:2.18"
}
bootRun {
jvmArgs = ['-Dspring.output.ansi.enabled=always']
}
assets {
minifyJs = true
minifyCss = true
}
可以从Sharepoint下载带有gradle--debug
的日志(此处看不到任何问题)。
我使用IntelliJ IDEA 2016.3,当我运行grails run-app时,我得到相同的结果。我找不到任何日志/信息grails命令的选项。[运行grails run-app][1]
更新:现在grails运行应用程序看起来不错,但返回了htpp 404。
您还需要清除旧的渐变缓存。请点击以下链接。我得到了几乎相同的错误。https://stackoverflow.com/a/39462689/3711185
我上面代码的日志是: 数据库也会更新。为什么lock()不工作?不是在lock()之后其他实例无法更新吗?还是别的什么?还是我错过了什么?
我有一个奇怪的错误,当我生成战争与圣杯战争指挥官 我不明白为什么这个文件夹会出现问题。我检查了它,但没有任何可疑之处。我测试清洁没有成功。运行应用程序命令工作。 StackTrace出错 war - stacktrace |正在处理1214的第53个文件-yui application/dial/assets/dial-core . CSS . |错误war打包错误:/Users/so vlin/
我试图在grails 3.1.11中运行一个项目,但是我遇到了一个错误。 失败:生成失败,出现异常。 > < li> 哪里出错:任务执行失败':bootRun '。 进程'命令'C:\Program Files\Java\jdk1.8.0_111\bin\java.exe"以非零退出值1结束 Try:使用- stacktrace选项运行以获取堆栈跟踪。使用- info或- debug选项运行以获得
甚至不知道在这一点上从哪里开始。我已经安装了圣杯 3.2.4 我正在使用智能J IDEA 终极版 2016.1.我可以使用grails-3.2.4创建一个新的圣杯项目,它似乎成功了,圣杯控制台显示创建应用程序是成功的。项目将创建并打开一个 IDEA 窗口,但显示以下消息: 我不知道这个错误来自何处,也不知道如何指定密钥库。如果我进入项目目录(~/myProject)并尝试从命令行运行grails,
本文向大家介绍CSS 使用Flexbox的圣杯布局,包括了CSS 使用Flexbox的圣杯布局的使用技巧和注意事项,需要的朋友参考一下 示例 Holy Grail布局是具有固定高度的页眉和页脚以及中心带有3列的布局。这3列包括一个固定宽度的sidenav,一个流体中心以及一个用于其他内容(例如广告)的列(流体中心在标记中排在最前面)。CSS Flexbox可以通过非常简单的标记来实现此目的: HT
我使用Spring安全核心插件。我想在用户登录后立即将对象放入会话中。到目前为止,我发现插件中有。它有一个称为的方法,它似乎在成功进行身份验证后被调用。所以我决定创建另一个LoginController,它扩展了默认控制器并覆盖了此方法: 但是调试表明这个方法从来没有被调用过。出了什么问题?可能有另一种方法来做我想做的事吗?谢谢大家!