您的位置:首页 > 大数据 > 人工智能

Groovy笔记-关于joda-time和excel-import插件适用的grails版本问题

2015-05-05 14:21 519 查看
1.joda-time

joda-time:1.5只适用于>2.3,即目前为止最新的2.4下可以.

相关依赖:

版本1.5:compile "org.jadira.usertype:usertype.jodatime:1.9"

其他版本joda-time(1.2/1.3/1.3.1/1.4):

compile("joda-time:joda-time-hibernate:1.3") {

excludes "joda-time", "hibernate"

}

2.excel-import

关于excel-import适用于何版本的grails,官网上是这么说的:

"Note: This was tested with Grails 1.3. stream (Tomcat 6
7), not tested with 2.* yet. It also currently has a dependency on Joda-Time plugin (1.2), though it should work with both Joda and java.util.Date. ."

很明显,只适用于grails1,grails2还不适用.

相关依赖:

mavenRepo "http://repo.grails.org/grails/libs-releases/"

mavenRepo "http://m2repo.spockframework.org/ext/"

PS:excel-import是依赖于joda-time的,所以要使用excel-import之前必须先安装joda-time,这也是为什么把他们两个放在一起讲解的原因.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐