Не найдена база данных для обработки ошибок с помощью postgresql ⇐ JAVA
Не найдена база данных для обработки ошибок с помощью postgresql
I am new to Java, trying to setup a first API.
I have a Springboot app which connects to a postgresql database on a docker container.
I do manage to access the database from the app, so the database in on and accessible as per my application.properties:
spring.datasource.driver-class-name=org.postgresql.Driver spring.datasource.url=jdbc:postgresql://localhost:5433/portfolio spring.datasource.username=postgres spring.datasource.password=123456 spring.datasource.driverClassName=org.postgresql.Driver spring.jpa.show-sql=true spring.jpa.properties.hibernate.format_sql=true spring.jpa.hibernate.ddl-auto=none When attempting to setup migrations with flyway with the command:
mvn flyway:migrate
I get the error:
No database found to handle jdbc:postgresql://localhost:5433/portfolio
This is how the pom.xml for flyway looks like:
org.flywaydb flyway-maven-plugin 10.7.1 __ filesystem:src/main/resources/db/migration/portfolio jdbc:postgresql://localhost:5433/portfolio postgres 123456 org.flywaydb flyway-core 10.7.1
Источник: https://stackoverflow.com/questions/780 ... postgresql
I am new to Java, trying to setup a first API.
I have a Springboot app which connects to a postgresql database on a docker container.
I do manage to access the database from the app, so the database in on and accessible as per my application.properties:
spring.datasource.driver-class-name=org.postgresql.Driver spring.datasource.url=jdbc:postgresql://localhost:5433/portfolio spring.datasource.username=postgres spring.datasource.password=123456 spring.datasource.driverClassName=org.postgresql.Driver spring.jpa.show-sql=true spring.jpa.properties.hibernate.format_sql=true spring.jpa.hibernate.ddl-auto=none When attempting to setup migrations with flyway with the command:
mvn flyway:migrate
I get the error:
No database found to handle jdbc:postgresql://localhost:5433/portfolio
This is how the pom.xml for flyway looks like:
org.flywaydb flyway-maven-plugin 10.7.1 __ filesystem:src/main/resources/db/migration/portfolio jdbc:postgresql://localhost:5433/portfolio postgres 123456 org.flywaydb flyway-core 10.7.1
Источник: https://stackoverflow.com/questions/780 ... postgresql
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение