My Spring Boot application which uses FlyWay enterprise license does not start and says the following message:
Caused by: org.flywaydb.core.api.FlywayException: Missing license key.
Ensure flyway.licenseKey is set to a valid Flyway license key ("FL01" followed by 512 hex chars)
The license is actually not missing. I've tried to set both as an env variable and in application.yml file with the name spring >> flyway >> licenseKey, but it is not reacting at all.
Any ideas where could the problem be hidden? The other env variables are considered by spring boot for database so this should not be the problem.