首页 软件开发 代码片段 groovy ( Page 7 )

groovy 77

#Groovy
扫描端口小工具

package org.sl.util /** * Created by shanl on 14-3-18. */ class ScanPort implements Runnab…

2015-12-14 244

#Groovy
Grails 文件上传

<g:form action="save" method="post" enctype="multipart/form-data"> <input type="f…

2015-12-14 1,006

#Groovy
groovy 方式 写的qt时钟代码

/** * */ package com.suziwen import com.trolltech.qt.core.QPoint import com.trolltech.qt.c…

2015-12-14 542

#Groovy
grails默认全局gorm配置

//默认实体约束 grails.gorm.default.constraints = { '*'(nullable:true, blank:true) } //默认映射 grail…

2015-12-14 447

#Groovy
Groovy实现Ruby的case .. when表达式

def match(subject, closure) { def whenMap = [:], otherwise = null closure.when = { map -&g…

2015-12-14 380
1 5 6 7