Where should flyway be configured when introduced to the project using the Maven plug-in approach?

According to the official documentation, when Flyway is introduced using the Maven plug-in, the configuration information is set to pom. YML, but database connection addresses, user names, and passwords are sensitive information, so I don't want to hard-code this information in the POM file when I'm in the application. I was unable to connect to the database correctly when I set the relevant information in YML. How?
Tagged:

Answers

  • When using Flyway in a project using the Maven plugin, you should configure it in the pom.xml file or via application.properties/application.yml if you are using Spring Boot. spring.flyway.locations: Specifies the directory containing the Geometry Dash SQL migration files (classpath:db/migration is the default directory).

Leave a Comment

BoldItalicStrikethroughOrdered listUnordered list
Emoji
Image
Align leftAlign centerAlign rightToggle HTML viewToggle full pageToggle lights
Drop image/file