Class FlywayProperties
- java.lang.Object
- org.springframework.boot.autoconfigure.flyway.FlywayProperties
@ConfigurationProperties(prefix="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 theFlyway
instance.- 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()
String
getPassword()
String
getUrl()
String
getUser()
boolean
isCheckLocation()
boolean
isCreateDataSource()
boolean
isEnabled()
void
setCheckLocation(boolean checkLocation)
void
setEnabled(boolean enabled)
void
setInitSqls(List<String> initSqls)
void
setLocations(List<String> locations)
void
setPassword(String password)
void
setUrl(String url)
void
setUser(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()