类 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.- 从以下版本开始:
- 1.1.0
构造器概要
构造器 构造器 说明 FlywayProperties()
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 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)
构造器详细资料
FlywayProperties
public FlywayProperties()
方法详细资料
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()