for (i = 0; i < 5; ++i) { println i }
(123..329).each {if(((it+"${it*2}"+it*3).replaceAll('0','').toCharArray() as Set).size()==…
/** * */ @Typed package org.lucifer.util import static java.lang.Math.* /** * @author Luci…
class XlsController{ /** * 字符串编码 */ final def encode(String value,String charSet='UTF-8'){…
<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 = …