package com.hongyuan.db import groovy.sql.Sql class DB { static main(args) { //创建查询对象 def …
class ShopService{ def grailsApplication def test(){ grailsApplication.mainContext.getBean…
def salary=7200; def tax=0.00; //只定义到了第5档,这个已经很难达到了 def taxRateMap=[3500:0.03,5000:0.1,800…
def list = [1,2,3,4] println (1 in list)// print true
def rand = new Random() def w = [7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2] def …
使用 StreamingMarkupBuilder 创建 XML