为Postgresql配置Grails3

为Postgresql配置Grails3,postgresql,grails,jdbc,Postgresql,Grails,Jdbc,我一直试图让Grails3连接到postgres,但无法连接 这在我的构建文件中:runtime“org.postgresql:postgresql:42.2.5” 以及application.yml数据源: dataSource: pooled: true jmxExport: true driverClassName: 'org.Postgresql.Driver' dialect: 'org.hibernate.dialect.PostgreSQLDiale

我一直试图让Grails3连接到postgres,但无法连接

这在我的构建文件中:
runtime“org.postgresql:postgresql:42.2.5”

以及application.yml数据源:

dataSource:
    pooled: true
    jmxExport: true
    driverClassName: 'org.Postgresql.Driver'
    dialect: 'org.hibernate.dialect.PostgreSQLDialect'
    username: 'okcomputer'
    password: ''

environments:
    development:
        dataSource:
            dbCreate: create-drop
            url: jdbc:postgresql://localhost:5432/test
    test:
        dataSource:
            dbCreate: update
            url: jdbc:postgresql://localhost:5432/test
    production:
        dataSource:
            dbCreate: none
            url: jdbc:postgresql://localhost:5432/test
            properties:
                jmxEnabled: true
                initialSize: 5
                maxActive: 50
                minIdle: 5
                maxIdle: 25
                maxWait: 10000
                maxAge: 600000
                timeBetweenEvictionRunsMillis: 5000
                minEvictableIdleTimeMillis: 60000
                validationQuery: SELECT 1
                validationQueryTimeout: 3
                validationInterval: 15000
                testOnBorrow: true
                testWhileIdle: true
                testOnReturn: false
                jdbcInterceptors: ConnectionState
                defaultTransactionIsolation: 2 # TRANSACTION_READ_COMMITTED
我做错了什么?我确定数据库存在并且用户/密码正确,但不确定如何进行故障排除。 此处提供完整的堆栈跟踪:

(我正在使用Java1.8和Grails3.3.8)


关于grails和postgres的信息非常少,所以提前感谢大家

驱动程序名称可能应该是
org.postgresql.driver
而不是
org.postgresql.driver
。JVM上的类名和包名区分大小写

dataSource:
    pooled: true
    jmxExport: true
    driverClassName: 'org.postgresql.Driver'
    dialect: 'org.hibernate.dialect.PostgreSQLDialect'
    username: 'okcomputer'
    password: ''