A B C D E G H I J M O P Q R S T V W Y
A
- addInterceptors(InterceptorRegistry) - 类 中的方法com.github.yt.web.YtWebMvcConfigurer
-
- afterCompletion(HttpServletRequest, HttpServletResponse, Object, Exception) - 类 中的方法com.github.yt.web.log.RequestLogInterceptor
-
- afterCompletion(HttpServletRequest, HttpServletResponse, Object, Exception) - 类 中的方法com.github.yt.web.result.RequestUuidInterceptor
-
- allController() - 类 中的方法com.github.yt.web.query.QueryControllerAspect
-
- around(ProceedingJoinPoint) - 类 中的方法com.github.yt.web.query.QueryControllerAspect
-
B
- BaseController - com.github.yt.web.controller中的类
-
- BaseController() - 类 的构造器com.github.yt.web.controller.BaseController
-
- BaseResultConfig - com.github.yt.web.result中的接口
-
http请求返回体的接口类
- beforeBodyWrite(Object, MethodParameter, MediaType, Class<? extends HttpMessageConverter<?>>, ServerHttpRequest, ServerHttpResponse) - 类 中的方法com.github.yt.web.result.PackageResponseBodyAdvice
-
C
- com.github.yt.web - 程序包 com.github.yt.web
-
- com.github.yt.web.controller - 程序包 com.github.yt.web.controller
-
- com.github.yt.web.log - 程序包 com.github.yt.web.log
-
- com.github.yt.web.query - 程序包 com.github.yt.web.query
-
- com.github.yt.web.result - 程序包 com.github.yt.web.result
-
- com.github.yt.web.unittest - 程序包 com.github.yt.web.unittest
-
- com.github.yt.web.util - 程序包 com.github.yt.web.util
-
- containsBean(String) - 类 中的静态方法com.github.yt.web.util.SpringContextUtils
-
- ControllerTestHandler - com.github.yt.web.unittest中的类
-
- ControllerTestHandler() - 类 的构造器com.github.yt.web.unittest.ControllerTestHandler
-
- convertErrorCode(Object) - 接口 中的方法com.github.yt.web.result.BaseResultConfig
-
异常码
- convertErrorCode(Object) - 类 中的方法com.github.yt.web.result.SimpleResultConfig
-
- convertToBaseException(Throwable) - 类 中的方法com.github.yt.web.result.ValidatorExceptionConverter
-
D
- destroy() - 类 中的方法com.github.yt.web.log.RequestLogFilter
-
- doFilter(ServletRequest, ServletResponse, FilterChain) - 类 中的方法com.github.yt.web.log.RequestLogFilter
-
E
- EnableYtQueryPage - com.github.yt.web中的注释类型
-
开启分页参数传入功能
分页参数传入到Query对象中
将传入参数的
- EnableYtWeb - com.github.yt.web中的注释类型
-
1.开启分页参数传入功能
2.返回体自动包装,包括无异常返回和异常返回两种情况的处理
3.记录请求信息
- EnableYtWebTest - com.github.yt.web.unittest中的注释类型
-
引入单元测试
单元测试同时需要添加注解 @AutoConfigureMockMvc
G
- get(String, LinkedMultiValueMap<String, String>, Object) - 类 中的静态方法com.github.yt.web.unittest.ControllerTestHandler
-
- get(String, LinkedMultiValueMap<String, String>) - 类 中的静态方法com.github.yt.web.unittest.ControllerTestHandler
-
- get(String, Object) - 类 中的静态方法com.github.yt.web.unittest.ControllerTestHandler
-
- get(String, boolean) - 类 中的静态方法com.github.yt.web.unittest.ControllerTestHandler
-
- get(String) - 类 中的静态方法com.github.yt.web.unittest.ControllerTestHandler
-
- getApplicationContext() - 类 中的静态方法com.github.yt.web.util.SpringContextUtils
-
- getBean(String) - 类 中的静态方法com.github.yt.web.util.SpringContextUtils
-
- getBean(Class<T>) - 类 中的静态方法com.github.yt.web.util.SpringContextUtils
-
- getBeans(Class<T>) - 类 中的静态方法com.github.yt.web.util.SpringContextUtils
-
- getBodyString(ServletRequest) - 类 中的静态方法com.github.yt.web.log.HttpHelper
-
获取请求Body
- getClassMethodName() - 类 中的方法com.github.yt.web.log.RequestLogEntity
-
- getDefaultErrorCode() - 接口 中的方法com.github.yt.web.result.BaseResultConfig
-
默认异常返回码
- getDefaultErrorCode() - 类 中的方法com.github.yt.web.result.SimpleResultConfig
-
- getDefaultErrorMessage() - 接口 中的方法com.github.yt.web.result.BaseResultConfig
-
默认异常返回信息
- getDefaultErrorMessage() - 类 中的方法com.github.yt.web.result.SimpleResultConfig
-
- getDefaultSuccessCode() - 接口 中的方法com.github.yt.web.result.BaseResultConfig
-
默认正常返回码
- getDefaultSuccessCode() - 类 中的方法com.github.yt.web.result.SimpleResultConfig
-
- getDefaultSuccessMessage() - 接口 中的方法com.github.yt.web.result.BaseResultConfig
-
默认正常返回信息
- getDefaultSuccessMessage() - 类 中的方法com.github.yt.web.result.SimpleResultConfig
-
- getError() - 类 中的方法com.github.yt.web.log.RequestLogEntity
-
- getErrorCodeField() - 接口 中的方法com.github.yt.web.result.BaseResultConfig
-
错误码字段
- getErrorCodeField() - 类 中的方法com.github.yt.web.result.SimpleResultConfig
-
- getErrorMessage() - 类 中的方法com.github.yt.web.log.RequestLogEntity
-
- getErrorSimpleResultBody(Throwable) - 类 中的静态方法com.github.yt.web.result.HttpResultHandler
-
- getErrorStackTrace() - 类 中的方法com.github.yt.web.log.RequestLogEntity
-
- getErrorState() - 类 中的方法com.github.yt.web.YtWebConfig.Result
-
- getHeaderParams() - 类 中的方法com.github.yt.web.log.RequestLogEntity
-
- getHttpHeaders() - 类 中的静态方法com.github.yt.web.unittest.InitApplication
-
- getInputStream() - 类 中的方法com.github.yt.web.log.RequestWrapper
-
- getInvokingTime() - 类 中的方法com.github.yt.web.log.RequestLogEntity
-
- getIpAddress() - 类 中的方法com.github.yt.web.log.RequestLogEntity
-
- getListResult(ResultActions, Class<T>) - 类 中的静态方法com.github.yt.web.unittest.HttpRestHandler
-
获取接口返回结果(列表)
- getMessageField() - 接口 中的方法com.github.yt.web.result.BaseResultConfig
-
信息字段
- getMessageField() - 类 中的方法com.github.yt.web.result.SimpleResultConfig
-
- getMockMvc() - 类 中的静态方法com.github.yt.web.unittest.InitApplication
-
- getMoreResultField() - 接口 中的方法com.github.yt.web.result.BaseResultConfig
-
更多结果字段
- getMoreResultField() - 类 中的方法com.github.yt.web.result.SimpleResultConfig
-
- getPage() - 类 中的方法com.github.yt.web.YtWebConfig
-
- getPageDataName() - 类 中的方法com.github.yt.web.YtWebConfig.Page
-
- getPageListResult(ResultActions, Class<T>) - 类 中的静态方法com.github.yt.web.unittest.HttpRestHandler
-
获取接口返回结果(分页)
- getPageNoName() - 类 中的方法com.github.yt.web.YtWebConfig.Page
-
- getPageSizeName() - 类 中的方法com.github.yt.web.YtWebConfig.Page
-
- getPageTotalCountName() - 类 中的方法com.github.yt.web.YtWebConfig.Page
-
- getReader() - 类 中的方法com.github.yt.web.log.RequestWrapper
-
- getRequest() - 类 中的方法com.github.yt.web.YtWebConfig
-
- getRequestBody() - 类 中的方法com.github.yt.web.log.RequestLogEntity
-
- getRequestTime() - 类 中的方法com.github.yt.web.log.RequestLogEntity
-
- getRequestUri() - 类 中的方法com.github.yt.web.log.RequestLogEntity
-
- getResponseBody() - 类 中的方法com.github.yt.web.log.RequestLogEntity
-
- getResult(ResultActions, Class<T>) - 类 中的静态方法com.github.yt.web.unittest.HttpRestHandler
-
获取接口返回结果
- getResult(String, Class<T>) - 类 中的静态方法com.github.yt.web.unittest.HttpRestHandler
-
获取接口返回结果
- getResult() - 类 中的方法com.github.yt.web.YtWebConfig
-
- getResultConfig() - 类 中的静态方法com.github.yt.web.result.HttpResultHandler
-
- getResultConfigClass() - 类 中的方法com.github.yt.web.YtWebConfig.Result
-
- getResultField() - 接口 中的方法com.github.yt.web.result.BaseResultConfig
-
结果字段
- getResultField() - 类 中的方法com.github.yt.web.result.SimpleResultConfig
-
- getSession() - 类 中的静态方法com.github.yt.web.unittest.InitApplication
-
- getStackTraceField() - 接口 中的方法com.github.yt.web.result.BaseResultConfig
-
异常栈字段
- getSuccessMoreResultBody(Object, Object) - 类 中的静态方法com.github.yt.web.result.HttpResultHandler
-
- getSuccessSimpleResultBody() - 类 中的静态方法com.github.yt.web.result.HttpResultHandler
-
- getSuccessSimpleResultBody(Object) - 类 中的静态方法com.github.yt.web.result.HttpResultHandler
-
- getUrlParams() - 类 中的方法com.github.yt.web.log.RequestLogEntity
-
- getUserAgent() - 类 中的方法com.github.yt.web.log.RequestLogEntity
-
- getUuidField() - 接口 中的方法com.github.yt.web.result.BaseResultConfig
-
uuid 字段
- getWithObjectParam(String, Object) - 类 中的静态方法com.github.yt.web.unittest.ControllerTestHandler
-
- getWithObjectParam(String, Object, Object) - 类 中的静态方法com.github.yt.web.unittest.ControllerTestHandler
-
H
- handleExceptions(Throwable, HandlerMethod, HttpServletRequest, HttpServletResponse) - 类 中的方法com.github.yt.web.result.PackageResponseBodyAdvice
-
全局异常处理类
配合文件上传文件最大限制时需要同时配置 spring.servlet.multipart.resolve-lazily。
- handleExceptions405(Throwable) - 类 中的方法com.github.yt.web.result.PackageResponseBodyAdvice
-
405 异常直接抛出
- httpHeaders - 类 中的变量com.github.yt.web.unittest.InitApplication
-
- HttpHelper - com.github.yt.web.log中的类
-
- HttpHelper() - 类 的构造器com.github.yt.web.log.HttpHelper
-
- HttpRestHandler - com.github.yt.web.unittest中的类
-
http接口请求返回实体处理类
- HttpRestHandler() - 类 的构造器com.github.yt.web.unittest.HttpRestHandler
-
- HttpResultEntity - com.github.yt.web.result中的类
-
http请求返回实体
- HttpResultEntity() - 类 的构造器com.github.yt.web.result.HttpResultEntity
-
- HttpResultHandler - com.github.yt.web.result中的类
-
http请求返回实体处理类
- HttpResultHandler() - 类 的构造器com.github.yt.web.result.HttpResultHandler
-
I
- init(FilterConfig) - 类 中的方法com.github.yt.web.log.RequestLogFilter
-
- InitApplication - com.github.yt.web.unittest中的类
-
- InitApplication(MockMvc) - 类 的构造器com.github.yt.web.unittest.InitApplication
-
- isConvertPage() - 类 中的方法com.github.yt.web.YtWebConfig.Page
-
- isPackageResponseBody() - 类 中的方法com.github.yt.web.YtWebConfig.Result
-
- isRequestLog() - 类 中的方法com.github.yt.web.YtWebConfig.Request
-
- isRequestLogBody() - 类 中的方法com.github.yt.web.YtWebConfig.Request
-
- isReturnStackTrace() - 类 中的方法com.github.yt.web.YtWebConfig.Result
-
J
- JsonResultConfig - com.github.yt.web.result中的类
-
- JsonResultConfig() - 类 的构造器com.github.yt.web.result.JsonResultConfig
-
- JsonUtils - com.github.yt.web.util中的类
-
对象 json 字符串 相互转换
- JsonUtils() - 类 的构造器com.github.yt.web.util.JsonUtils
-
M
- mockMvc - 类 中的变量com.github.yt.web.unittest.InitApplication
-
O
- objectMapper() - 类 中的方法com.github.yt.web.result.JsonResultConfig
-
P
- PackageResponseBody - com.github.yt.web.result中的注释类型
-
是否自动包装返回体
返回体实现BaseResultConfig,默认SimpleResultConfig
作用于controller的类或者方法上
优先级,方法-类-全局配置(yt.result.packageResponseBody)
- PackageResponseBodyAdvice - com.github.yt.web.result中的类
-
1.返回体拦截器 实现ResponseBodyAdvice接口的supports和beforeBodyWrite方法
2.异常拦截器 @ExceptionHandler作用的handleExceptions方法
ApplicationContextAware 的作用是可以获取spring管理的bean
正常返回和异常返回分别被该类处理
拦截返回结果或者异常包装成HttpResultEntity
- PackageResponseBodyAdvice(YtWebConfig) - 类 的构造器com.github.yt.web.result.PackageResponseBodyAdvice
-
- Page() - 类 的构造器com.github.yt.web.YtWebConfig.Page
-
- parseToUrlPair(String, Object) - 类 中的静态方法com.github.yt.web.unittest.ControllerTestHandler
-
- parseToUrlPair(Object) - 类 中的静态方法com.github.yt.web.unittest.ControllerTestHandler
-
- post(String, Object, LinkedMultiValueMap<String, String>, Object) - 类 中的静态方法com.github.yt.web.unittest.ControllerTestHandler
-
- post(String, Object, LinkedMultiValueMap<String, String>) - 类 中的静态方法com.github.yt.web.unittest.ControllerTestHandler
-
- post(String, Object, Object) - 类 中的静态方法com.github.yt.web.unittest.ControllerTestHandler
-
- post(String, Object) - 类 中的静态方法com.github.yt.web.unittest.ControllerTestHandler
-
- post(String) - 类 中的静态方法com.github.yt.web.unittest.ControllerTestHandler
-
- postHandle(HttpServletRequest, HttpServletResponse, Object, ModelAndView) - 类 中的方法com.github.yt.web.log.RequestLogInterceptor
-
- postHandle(HttpServletRequest, HttpServletResponse, Object, ModelAndView) - 类 中的方法com.github.yt.web.result.RequestUuidInterceptor
-
- preHandle(HttpServletRequest, HttpServletResponse, Object) - 类 中的方法com.github.yt.web.log.RequestLogInterceptor
-
- preHandle(HttpServletRequest, HttpServletResponse, Object) - 类 中的方法com.github.yt.web.result.RequestUuidInterceptor
-
Q
- QueryControllerAspect - com.github.yt.web.query中的类
-
分页增强
支持可配置分页页码和每页条数
指定如下两个参数
默认是pageNo和pageSize
yt.page.pageNoName
yt.page.pageSizeName
- QueryControllerAspect() - 类 的构造器com.github.yt.web.query.QueryControllerAspect
-
R
- request - 类 中的变量com.github.yt.web.controller.BaseController
-
- Request() - 类 的构造器com.github.yt.web.YtWebConfig.Request
-
- REQUEST_BEFORE_BODY_WRITE - 类 中的静态变量com.github.yt.web.result.PackageResponseBodyAdvice
-
- REQUEST_EXCEPTION - 类 中的静态变量com.github.yt.web.result.PackageResponseBodyAdvice
-
- REQUEST_RESULT_ENTITY - 类 中的静态变量com.github.yt.web.result.PackageResponseBodyAdvice
-
- REQUEST_UUID - 类 中的静态变量com.github.yt.web.result.RequestUuidInterceptor
-
- RequestLog - com.github.yt.web.log中的注释类型
-
是否记录请求日志,默认记录
- RequestLogEntity - com.github.yt.web.log中的类
-
请求日志实体类
- RequestLogEntity() - 类 的构造器com.github.yt.web.log.RequestLogEntity
-
- RequestLogFilter - com.github.yt.web.log中的类
-
记录请求日志的filter
对于post请求的body中内容只能读取一次,将post的内容设置成可重复读取
- RequestLogFilter() - 类 的构造器com.github.yt.web.log.RequestLogFilter
-
- RequestLogInterceptor - com.github.yt.web.log中的类
-
记录请求日志
- RequestLogInterceptor() - 类 的构造器com.github.yt.web.log.RequestLogInterceptor
-
- RequestUuidInterceptor - com.github.yt.web.result中的类
-
打印请求 uuid
- RequestUuidInterceptor() - 类 的构造器com.github.yt.web.result.RequestUuidInterceptor
-
- RequestWrapper - com.github.yt.web.log中的类
-
- RequestWrapper(HttpServletRequest) - 类 的构造器com.github.yt.web.log.RequestWrapper
-
- response - 类 中的变量com.github.yt.web.controller.BaseController
-
- result() - 类 中的方法com.github.yt.web.controller.BaseController
-
- result(Object) - 类 中的方法com.github.yt.web.controller.BaseController
-
- result(Object, Object) - 类 中的方法com.github.yt.web.controller.BaseController
-
- Result() - 类 的构造器com.github.yt.web.YtWebConfig.Result
-
S
- session - 类 中的变量com.github.yt.web.controller.BaseController
-
- session - 类 中的变量com.github.yt.web.unittest.InitApplication
-
- setApplicationContext(ApplicationContext) - 类 中的方法com.github.yt.web.result.PackageResponseBodyAdvice
-
- setApplicationContext(ApplicationContext) - 类 中的方法com.github.yt.web.util.SpringContextUtils
-
- setClassMethodName(String) - 类 中的方法com.github.yt.web.log.RequestLogEntity
-
- setConvertPage(boolean) - 类 中的方法com.github.yt.web.YtWebConfig.Page
-
- setError(Boolean) - 类 中的方法com.github.yt.web.log.RequestLogEntity
-
- setErrorMessage(String) - 类 中的方法com.github.yt.web.log.RequestLogEntity
-
- setErrorStackTrace(String) - 类 中的方法com.github.yt.web.log.RequestLogEntity
-
- setErrorState(int) - 类 中的方法com.github.yt.web.YtWebConfig.Result
-
- setHeaderParams(String) - 类 中的方法com.github.yt.web.log.RequestLogEntity
-
- setInvokingTime(Integer) - 类 中的方法com.github.yt.web.log.RequestLogEntity
-
- setIpAddress(String) - 类 中的方法com.github.yt.web.log.RequestLogEntity
-
- setPackageResponseBody(boolean) - 类 中的方法com.github.yt.web.YtWebConfig.Result
-
- setPage(YtWebConfig.Page) - 类 中的方法com.github.yt.web.YtWebConfig
-
- setPageDataName(String) - 类 中的方法com.github.yt.web.YtWebConfig.Page
-
- setPageNoName(String) - 类 中的方法com.github.yt.web.YtWebConfig.Page
-
- setPageSizeName(String) - 类 中的方法com.github.yt.web.YtWebConfig.Page
-
- setPageTotalCountName(String) - 类 中的方法com.github.yt.web.YtWebConfig.Page
-
- setRequest(YtWebConfig.Request) - 类 中的方法com.github.yt.web.YtWebConfig
-
- setRequestBody(String) - 类 中的方法com.github.yt.web.log.RequestLogEntity
-
- setRequestLog(boolean) - 类 中的方法com.github.yt.web.YtWebConfig.Request
-
- setRequestLogBody(boolean) - 类 中的方法com.github.yt.web.YtWebConfig.Request
-
- setRequestTime(Date) - 类 中的方法com.github.yt.web.log.RequestLogEntity
-
- setRequestUri(String) - 类 中的方法com.github.yt.web.log.RequestLogEntity
-
- setResponseBody(String) - 类 中的方法com.github.yt.web.log.RequestLogEntity
-
- setResult(YtWebConfig.Result) - 类 中的方法com.github.yt.web.YtWebConfig
-
- setResultConfigClass(Class<? extends BaseResultConfig>) - 类 中的方法com.github.yt.web.YtWebConfig.Result
-
- setReturnStackTrace(boolean) - 类 中的方法com.github.yt.web.YtWebConfig.Result
-
- setUrlParams(String) - 类 中的方法com.github.yt.web.log.RequestLogEntity
-
- setUserAgent(String) - 类 中的方法com.github.yt.web.log.RequestLogEntity
-
- SimpleResultConfig - com.github.yt.web.result中的类
-
http请求返回体的默认实现
- SimpleResultConfig() - 类 的构造器com.github.yt.web.result.SimpleResultConfig
-
- SpringContextUtils - com.github.yt.web.util中的类
-
- SpringContextUtils() - 类 的构造器com.github.yt.web.util.SpringContextUtils
-
- supports(MethodParameter, Class<? extends HttpMessageConverter<?>>) - 类 中的方法com.github.yt.web.result.PackageResponseBodyAdvice
-
T
- toJsonString(Object) - 类 中的静态方法com.github.yt.web.util.JsonUtils
-
V
- ValidatorExceptionConverter - com.github.yt.web.result中的类
-
参数校验异常处理器
- ValidatorExceptionConverter() - 类 的构造器com.github.yt.web.result.ValidatorExceptionConverter
-
- valueOf(String) - 枚举 中的静态方法com.github.yt.web.YtWebExceptionEnum
-
返回带有指定名称的该类型的枚举常量。
- values() - 枚举 中的静态方法com.github.yt.web.YtWebExceptionEnum
-
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
W
- writeExceptionResult(Throwable, HttpServletRequest, HttpServletResponse) - 类 中的静态方法com.github.yt.web.result.HttpResultHandler
-
Y
- YtWebConfig - com.github.yt.web中的类
-
- YtWebConfig() - 类 的构造器com.github.yt.web.YtWebConfig
-
- YtWebConfig.Page - com.github.yt.web中的类
-
- YtWebConfig.Request - com.github.yt.web中的类
-
- YtWebConfig.Result - com.github.yt.web中的类
-
- YtWebExceptionEnum - com.github.yt.web中的枚举
-
异常枚举
- YtWebMvcConfigurer - com.github.yt.web中的类
-
- YtWebMvcConfigurer() - 类 的构造器com.github.yt.web.YtWebMvcConfigurer
-
A B C D E G H I J M O P Q R S T V W Y
Copyright © 2020. All rights reserved.