When trying to launch my project I get the error:
java.lang.IllegalArgumentException: URL must start with 'jdbc'
I configure my database connection in an application.properties file that looks like this:
spring.datasource.url=${JDBC_DATABASE_URL}
spring.datasource.username=${JDBC_DATABASE_USERNAME}
spring.datasource.password=${JDBC_DATABASE_PASSWORD}
And have an maven/spring-boot start script that gets the VM options:
-DJDBC_DATABASE_URL="jdbc:postgresql://localhost:5432/project"
-DJDBC_DATABASE_USERNAME="postgres"
-DJDBC_DATABASE_PASSWORD="postgres"
A few tests showed me, that the VM options are completely not resolved but I have no idea on how to fix this.
My IDE is IntelliJ Community Edition.
It worked fine. Today I upgraded the project to Java 15 but in my opinion this should not result in such a problem.
Do you have any idea where the config gets overwritten or something?