Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Grails 3.0.1 - how to configure grails.gorm.default.constraints in application.yml

I took the old configuration:

grails.gorm.default.constraints = {
    '*' (nullable: true, blank: true)
}

... and put it in the application.groovy.

Luckily it worked as expected.

How would one define this in application.yml? I tried:

grails:
    gorm:
        default:
            constraints:
                '*' (nullable: true, blank: true)

but this gives errors on start.

like image 379
rawi Avatar asked Apr 08 '15 15:04

rawi


1 Answers

application.groovy is the place to do that. Groovy code in a .yml config file is invalid and not supported.

like image 124
Jeff Scott Brown Avatar answered Nov 08 '22 11:11

Jeff Scott Brown