asas

class Device {
    String deviceId
    String devicePassword
  
    static constraints = {
    }
}

 Device device = new Device(deviceId:'hi',devicePassword:'hi')
       device.save(flush:true);

你可能感兴趣的:(java)