// before def fun1(a, b, c) { println("-----------------------") if (a > b || a > c)…
new URL("http://www.oschina.net").openConnection().content.text.eachMatch( /href="(http.+?…
class UrlMappings { //grails框架不处理以下请求,也就是不经过grails的Controller,由web服务器处理 static excludes = …
def list1 = [1, 2, 3] def list2 = [4, 5, 6] def result = true list1.eachWithIndex { n, i -…
//---------------------------------------------------------------------------------- print…
String token = "QDG6eK"; String timeStamp = "1409659589"; String nonce = "263014780"; Stri…
import groovy.util.logging.* import java.util.logging.Level @Log("log2") class Car { Car()…
dataSource { jndiName = "java:comp/env/jdbc/lugua" //或 jndiName = "jdbc/lugua" 视你的jee容器jnd…
def a = [1, 2, 3] def b = [4, 5, 6] def m = [:] [a, b].transpose().each { k, v -> m += …
package org.sl.util /** * Created by shanl on 14-3-18. */ class ScanPort implements Runnab…
<g:form action="save" method="post" enctype="multipart/form-data"> <input type="f…
/** * */ package com.suziwen import com.trolltech.qt.core.QPoint import com.trolltech.qt.c…