I have found references on how to do this using DataSource.groovy however I haven't managed to get it working with Grails 3 application.yml. This doesn't work:
grails:
hibernate:
cache:
queries: false
default_schema: "bread"
The tables are created with 'public' schema.
I believe it was a bug that's been corrected now, but the hibernate
part of your config needs to live on the root, not under grails
.
hibernate:
default_schema: SCHEMA
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.