org.springframework.boot.autoconfigure.flyway

Class FlywayProperties

  • java.lang.Object
    • org.springframework.boot.autoconfigure.flyway.FlywayProperties


  • @ConfigurationProperties(prefix="spring.flyway",
                             ignoreUnknownFields=true)
    public class FlywayProperties
    extends Object
    Configuration properties for Flyway database migrations. These are only the properties that Spring needs to validate and enable the migrations. If you want to control the location or format of the scripts you can use the same prefix ("flyway") to inject properties into the Flyway instance.
    Since:
    1.1.0
    Author:
    Dave Syer, EddĂș MelĂ©ndez
    • Constructor Detail

      • FlywayProperties

        public FlywayProperties()
    • Method Detail

      • setLocations

        public void setLocations(List<String> locations)
      • getLocations

        public List<String> getLocations()
      • setCheckLocation

        public void setCheckLocation(boolean checkLocation)
      • isCheckLocation

        public boolean isCheckLocation()
      • isEnabled

        public boolean isEnabled()
      • setEnabled

        public void setEnabled(boolean enabled)
      • getUser

        public String getUser()
      • setUser

        public void setUser(String user)
      • getPassword

        public String getPassword()
      • setPassword

        public void setPassword(String password)
      • getUrl

        public String getUrl()
      • setUrl

        public void setUrl(String url)
      • setInitSqls

        public void setInitSqls(List<String> initSqls)
      • isCreateDataSource

        public boolean isCreateDataSource()