Class FlywayProperties
- java.lang.Object
- org.springframework.boot.autoconfigure.flyway.FlywayProperties
@ConfigurationProperties(prefix="flyway", ignoreUnknownFields=true) public class FlywayProperties extends ObjectConfiguration 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 theFlywayinstance.- Since:
- 1.1.0
Constructor Summary
Constructors Constructor Description FlywayProperties()
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<String>getInitSqls()List<String>getLocations()StringgetPassword()StringgetUrl()StringgetUser()booleanisCheckLocation()booleanisCreateDataSource()booleanisEnabled()voidsetCheckLocation(boolean checkLocation)voidsetEnabled(boolean enabled)voidsetInitSqls(List<String> initSqls)voidsetLocations(List<String> locations)voidsetPassword(String password)voidsetUrl(String url)voidsetUser(String user)
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)
getPassword
public String getPassword()
setPassword
public void setPassword(String password)
getInitSqls
public List<String> getInitSqls()
setInitSqls
public void setInitSqls(List<String> initSqls)
isCreateDataSource
public boolean isCreateDataSource()