类 RepositoryRestProperties
java.lang.Object
org.springframework.boot.autoconfigure.data.rest.RepositoryRestProperties
@ConfigurationProperties(prefix="spring.data.rest")
public class RepositoryRestProperties
extends Object
Configuration properties for Spring Data REST.
- 从以下版本开始:
- 1.3.0
- 作者:
- Stephane Nicoll
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明void
applyTo
(org.springframework.data.rest.core.config.RepositoryRestConfiguration rest) org.springframework.data.rest.core.mapping.RepositoryDetectionStrategy.RepositoryDetectionStrategies
void
setBasePath
(String basePath) void
setDefaultMediaType
(MediaType defaultMediaType) void
setDefaultPageSize
(Integer defaultPageSize) void
setDetectionStrategy
(org.springframework.data.rest.core.mapping.RepositoryDetectionStrategy.RepositoryDetectionStrategies detectionStrategy) void
setEnableEnumTranslation
(Boolean enableEnumTranslation) void
setLimitParamName
(String limitParamName) void
setMaxPageSize
(Integer maxPageSize) void
setPageParamName
(String pageParamName) void
setReturnBodyOnCreate
(Boolean returnBodyOnCreate) void
setReturnBodyOnUpdate
(Boolean returnBodyOnUpdate) void
setSortParamName
(String sortParamName)
-
构造器详细资料
-
RepositoryRestProperties
public RepositoryRestProperties()
-
-
方法详细资料
-
getBasePath
-
setBasePath
-
getDefaultPageSize
-
setDefaultPageSize
-
getMaxPageSize
-
setMaxPageSize
-
getPageParamName
-
setPageParamName
-
getLimitParamName
-
setLimitParamName
-
getSortParamName
-
setSortParamName
-
getDetectionStrategy
public org.springframework.data.rest.core.mapping.RepositoryDetectionStrategy.RepositoryDetectionStrategies getDetectionStrategy() -
setDetectionStrategy
public void setDetectionStrategy(org.springframework.data.rest.core.mapping.RepositoryDetectionStrategy.RepositoryDetectionStrategies detectionStrategy) -
getDefaultMediaType
-
setDefaultMediaType
-
getReturnBodyOnCreate
-
setReturnBodyOnCreate
-
getReturnBodyOnUpdate
-
setReturnBodyOnUpdate
-
getEnableEnumTranslation
-
setEnableEnumTranslation
-
applyTo
public void applyTo(org.springframework.data.rest.core.config.RepositoryRestConfiguration rest)
-