grails

Increase timeout for gradle to get a maven dependency

☆樱花仙子☆ 提交于 2020-04-07 14:48:19
问题 I am tring to get a jar dependency from Maven via the grails 3.1.5 gradle dependency Resolution . How do I increase timeout that gradle takes to get a maven dependency. Sure I have seen that the dependency takes quiet a longer time to be downloaded. But how can I configure gradle to wait longer in order to download the dependency 回答1: The feature was added in Gradle here: https://github.com/gradle/gradle/pull/3041 You can increase the timeout with 2 properties: ./gradlew build -Dhttp

Expression not correctly identified ( Operators and Operands )

白昼怎懂夜的黑 提交于 2020-03-25 18:23:16
问题 I need to identify top-level expression from a given string and convert it into the left operand, right operand and operator in groovy. I have created a matcher array to match expression and logic is as follow static CONDITION_REGEXPS = [ '(.+) (==) (.+)', '(.+) (!=) (.+)', '(.+) (>) (.+)', '(.+) (>=) (.+)', '(.+) (<) (.+)', '(.+) (<=) (.+)' ] static fromString(def string) { if (string) { string = string.split('\\|\\|'); List<List> list = string.collect({ it.trim().replaceAll(/^\(|\)$/, '')

技术沙龙|破冰区块链技术,从钱包和智能合约开发入门区块链(西安)

≡放荡痞女 提交于 2020-03-09 14:47:22
身在区块链行业,最近这几个月有一种尘归尘土归土的感觉,随着大众对区块链热度的下降,对于区块链技术圈来说,倒是一件好事。 回归区块链技术本源,不可篡改的技术特性有了越来越多的应用场景,就像几年前的人工智能、大数据一样,真正的技术人才仍然千金难求。 对于数百万的软件开发从业者来说,掌握一些区块链技术,会打开新的技术视角,带来更多技术解决方案,而在区块链技术入门上,钱包开发和智能合约是两个既基础,又重要的,但又相对简单的区块链知识。 11月24日,HiBlock区块链社区在西安发起一场“破冰区块链技术”的沙龙活动 ,邀请胡键和鲍帅两位老师分别从以太坊钱包开发和编写安全的solidity智能合约两个话题分享区块链技术入门方式。此外,还有冯宇老师带来技术视频制作小技巧。 1 时间地点 主题:破冰区块链技术,从钱包和智能合约开发入门区块链 **时间:**11月24日 13:30-17:30 地址 : 西安市高新区沣惠南路36号橡树街区B-10101,哈希屋 (32路;35路;184路;260路;261路;261路区间;280路;324路;411路;高新1号线;高新4号线;高新9号线;高新草堂专线到科技六路中段下车) 本次活动 免费 参加,点击" 阅读原文 "即可报名 2 分享内容 话题1:使用Angular开发以太坊钱包 钱包是区块链应用的必备组件之一,对于任何意图入门区块链开发的开发者来讲

How to add Grails Support to Eclipse 2019-06?

江枫思渺然 提交于 2020-03-05 00:16:35
问题 When searched using : http://dist.springsource.com/release/TOOLS/update/e4.4/ It does not show Grails in list (Referred: https://www.vogella.com/tutorials/Grails/article.html) Also Searched in Eclipse Marketplace : https://marketplace.eclipse.org/category/free-tagging/grails But it is not allowing to install in Eclipse version. Can anyone suggest how to create Grails projects in eclipse as i am first time configuring Grails? 来源: https://stackoverflow.com/questions/60520505/how-to-add-grails

grails 环境找不到java_home

醉酒当歌 提交于 2020-03-01 12:27:38
这几天在网上找了开发grails的各种IDE,Eclipse,netbeans,IntelliJ IDEA ,最后选择IntelliJ IDEA 。 使用IntelliJ IDEA 8.1.2生成grails control,结果出现以下错误: ERROR: JAVA_HOME is set to an invalid directory: C:/jdk1.6.0_012 Please set the JAVA_HOME variable in your environment to match the location of your Java installation. 最后在网上找到了两种解决方案, 方法一: OK If you find this in your startGrails.bat %COMMAND_COM% /C DIR “%JAVA_HOME%” 2>&1 | %FIND_EXE% /I /C “%JAVA_HOME%” >nul comment it; in windows: @rem %COMMAND_COM% /C DIR “%JAVA_HOME%” 2>&1 | %FIND_EXE% /I /C “%JAVA_HOME%” >nul Robert 意思就是把startGrails.bat下的 %COMMAND_COM% /C DIR “%JAVA

用n多的框架写同一个demo

我只是一个虾纸丫 提交于 2020-02-29 17:27:41
发表日期2016年年末 最近有了比较长的空闲时间。 所以看了很多很多不同的语言,框架。 java用了很多年了,总觉得眼界都被java影响了,所以想从新开始学一点新的东西。 而一旦开始选择开始的路径,完美主义的小心思就出来作祟了。 泛泛的接触了好多好多东西,基本上主流的语言,框架都把入门文档看了个遍。 到最后都没有达到最初想学点东西的目的,反而看文档的能力提高不少...... 所以,我决定不再单纯的看了。 我觉得执行下面的计划,动手写写。这也是为什么文章开始就要写明发表时间,因为未来会发生什么谁也不知道,我得到的结果只是当下我认为的好结果而已。 仅此而已 测试方式:controller层上返回服务器当前时间 new Date().getTime() //long类型 开发方式:使用各个框架的引导教程默认设置去写代码,尽量写最少的代码完成demo 测试的框架:jfinal(java),grails(groovy),play(scala),springboot-undertow(java),express(js),beego(golang),compojure(clojure)....看情况增加 测试内容:ab进行压测测试,开发效率(完成所花费的时间),上手难度,扩展性(面对需求频繁更改的可维护性) 压测命令:ab -n 100000 -c 1000 -k http:/

Changing GORM table name

人走茶凉 提交于 2020-02-27 23:06:49
问题 I'm fighting to get the following mapping working in Grails 1.3.1 and MySQL: class Login { int id String email static mappings = { table 'my_table' id column: "Mgr_id" version false } } No matter what I do the queries that are being issued refer to "schema.login" table instead of "schema.my_table". This is very frustrating... Can anyone answer why this might not be working? 回答1: Please forgive my blindness... The static is called mapping not mappings ... eh. Shame on me... Block should be

Grails and Quartz: Bad value for type long

為{幸葍}努か 提交于 2020-02-27 17:53:54
问题 I'm trying to save quartz jobs into the database. I've set up the tables, created quartz.properties files, but when I try to run the app, this exception shows up: 2012-02-01 17:36:23,708 [main] ERROR context.GrailsContextLoader - Error executing bootstraps: org.quartz.JobPersistenceException: Couldn't store trigger 'expirationTrigger' for 'com.pldtglobal.svngateway.ExpirationCheckerJob' job:Bad value for type long : \254\355\000\005sr\000\025org.quartz.JobDataMap\237\260\203\350\277\251\260

Grails and Quartz: Bad value for type long

限于喜欢 提交于 2020-02-27 17:50:46
问题 I'm trying to save quartz jobs into the database. I've set up the tables, created quartz.properties files, but when I try to run the app, this exception shows up: 2012-02-01 17:36:23,708 [main] ERROR context.GrailsContextLoader - Error executing bootstraps: org.quartz.JobPersistenceException: Couldn't store trigger 'expirationTrigger' for 'com.pldtglobal.svngateway.ExpirationCheckerJob' job:Bad value for type long : \254\355\000\005sr\000\025org.quartz.JobDataMap\237\260\203\350\277\251\260

GStringImpl cannot be cast to java.lang.String

那年仲夏 提交于 2020-02-27 15:06:28
问题 I got the error below using Grails and Spring Security. Has anyone else had a problem like this? If so, what was your fix? Error | Exception in thread "Thread-15" Error | java.lang.ClassCastException: org.codehaus.groovy.runtime.GStringImpl cannot be cast to java.lang.String Error | at org.codehaus.groovy.grails.project.compiler.GrailsProjectWatcher.run(GrailsProjectWatcher.java:114) And java.lang.IllegalArgumentException: Failed to evaluate expression 'User_name' 回答1: Did you generate all