加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 大数据 > 正文

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

发布时间:2020-12-14 16:47:31 所属栏目:大数据 来源:网络整理
导读: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") { ?? ??? ?

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,这也是为什么把他们两个放在一起讲解的原因.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读