Skip to content
Advertisement

How do I configure PostgreSQL with Grails 3.0?

I am using IntelliJ IDEA 15.0.2 as an IDE. I have created a Grails 3.0 application and changed it a bit to configure PostgreSQL.

Here is my dataSource:

JavaScript

And in my build.gradle I added runtime "postgresql:postgresql:9.4-1207.jdbc4".

But that gives errors when I run:

JavaScript

What have I missed?

Advertisement

Answer

Data source

JavaScript

Build Config

JavaScript

Change the jre number according to your db numbe psql version. Hope i helped. Cheers!

User contributions licensed under: CC BY-SA
9 People found this is helpful
Advertisement