我在中添加了数据库配置build.gradle
liquibase {
activities {
main {
changeLogFile "${this.rootDir}/src/main/resources/changelog-master.xml"
url "jdbc:postgresql://localhost:5432/test?createDatabaseIfNotExist=true"
username "xxxx"
password "xxxx"
}
}
runList = 'main'
}
Run Code Online (Sandbox Code Playgroud)
createDatabaseIfNotExist在 URL 中设置为 true。
当我启动服务器时,它给出数据库不存在。
我希望 liquibase 创建数据库(如果它不存在)。
有什么建议请