Reputation: 5078
I am new to grails and have created my first project using grails-init. I now have a grails project that uses gradle as it's build tool. However, as I go through online tutorials I find that I am missing a lot of the files that are commonly cited. Files such as config.groovy and datasource.groovy.
I've tried re-creating the project, but I get the same structure and files. Can I just add these files manually? I have tried doing so, but they don't seem to be getting picked up when I run the application.
Upvotes: 0
Views: 85
Reputation: 11
Grails 3.1 have new features and structure changes. Now grails uses spring boot and Spring 4.2 and as mentioned, Config.groovy
and Datasource.groovy
can be configured using application.yml
. You can found more information here Grails documentation
Upvotes: 1
Reputation: 27245
Config.groovy
and DataSource.groovy
are both applicable to Grails 2 applications but not Grails 3 applications. In Grails 3 the default place for the information that used to go in those files is application.yml
.
Upvotes: 1