Categories
Grails Groovy

Bootstrapping a Grails application to prepopulate data on startup

I’ve been dabbling in a little Grails recently, and I found it quite frustrating having to re-enter some sample data everytime I restarted my application, in order to have the views look meaningful. Fortunately, theres an easy solution, just do all of your setup in the Bootstrapper class like so : Then, every time you […]