0
votes

I want to use Data in *.properties...

This is my application.properties file

spring.datasource.url=jdbc:postrgresql://host:port/dbName 
spring.datasource.username=username
spring.datasource.password=password

and my "jooq-codegen-plugin" in <build> in pom.xml

<plugin>
            <groupId>org.jooq</groupId>
            <artifactId>jooq-codegen-maven</artifactId>
            <dependencies>
                <dependency>
                    <groupId>org.postgresql</groupId>
                    <artifactId>postgresql</artifactId>
                    <version>42.2.23</version>
                </dependency>
            </dependencies>
            <configuration>
                <jdbc>
                    <driver>org.postgresql.Driver</driver>
                    <user>${spring.datasource.username}</user>
                    <password>${spring.datasource.password}</password>
                    <url>${spring.datasource.url}</url>
                </jdbc>
                <generator>
                    <database>
                        <name>org.jooq.meta.postgres.PostgresDatabase</name>
                        <includes>.*</includes>

                        <inputSchema>public</inputSchema>
                    </database>
                    <target>
                        <packageName>com.wavers.hwacha.generated.jooq</packageName>
                        <directory>src/main/java/</directory>
                    </target>
                </generator>
            </configuration>
        </plugin>

and Part of Error when I run enter image description here

[INFO] Database parameters      
[INFO] ----------------------------------------------------------
[INFO]   dialect                : POSTGRES
[INFO]   URL                    : 

and another error message

Cannot execute query. No Connection configured

I guess that url info written at pom.xml do not map...

I Can't find any way... help me