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