Я создаю бэкэнд для своего приложения и хочу перенести свою базу данных, используя Flayway. < /p>
Код: Выделить всё
org.flywaydb
flyway-core
org.flywaydb
flyway-database-postgresql
10.15.0
Код: Выделить всё
spring:
datasource:
username: speed
url: jdbc:postgresql://localhost:5432/DBManage
password: userpass66!
jpa:
properties:
hibernate:
dialect: org.hibernate.dialect.PostgreSQLDialect
format_sql: 'true'
hibernate:
ddl-auto: update
show-sql: 'true'
flyway:
driverClassName: org.postgresql.Driver
enabled: true
baseline-on-migrate: true
user: speed
password: userpass66!
< /code>
Но после использования пульсирования пролета (кстати, я использую vscode), я получил эту ошибку: < /p>
[ERROR] Failed to execute goal org.flywaydb:flyway-maven-plugin:10.20.1:migrate (default-cli) on project backend: org.flywaydb.core.api.FlywayException: Unable to connect to the database. Configure the url, user and password! -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
< P> Спасибо.
Подробнее здесь: https://stackoverflow.com/questions/794 ... re-the-url