<g:each in="${subjectInstance.articles}" var='article' status="i"> <g:if test="${…
package com.test println a b = a * 2 c = { -> println a * 3 }
path = "." as File if (args) { path = args[0] as File } printDir path,0 def printDir(File …
/* * Copyright 2009-2010 MBTE Sweden AB. * * Licensed under the Apache License, Version 2.…
/** * 构建excel * @param block 闭包,封装构建逻辑 */ def build(dataList,titleList,out,Closure block){…
def bjSectionInstance = BjSection.get(params.id) if (!bjSectionInstance) { flash.message =…
import groovy.swing.SwingBuilder import javax.swing.* import java.awt.* class Gwitter{ sta…
首先在buildConfig中的plugins { compile ":mail:1.0.1" } 然后再config中配置 grails.mail.default.from = …
// cf. http://kyle-in-jp.blogspot.com/2008/08/java2d.html // cf. http://d.hatena.ne.jp/tos…
<langs type="current"> <language>Java</language> <language>Groovy&…
/** * A utility that contains all of the client functionality needed to perform the upload…
import groovy.swing.SwingBuilder import javax.swing.* def swingBuilder = new SwingBuilder(…