If you have more than one gorm mount installed, you can specify grails to be used with mappedWith
Add the following to the domain object.
static mappedWith = "restclient"
For the Rest gorm plugin, you still need to set the resource URL.
static mapping = {
url "http://localhost:8080/amazon/books"
}
See guide .
source
share