类 ResponseUtils
java.lang.Object
com.cdkjframework.util.network.ResponseUtils
使用response输出JSON
- Description:
- :
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明static void
getResponse
(jakarta.servlet.http.HttpServletResponse httpServletResponse, String message, Integer status) 响应内容static void
out
(ResponseBuilder builder) 使用 response 输出JSONstatic void
out
(jakarta.servlet.ServletResponse response, ResponseBuilder builder) 使用 response 输出JSONstatic void
使用 response 输出JSON
-
构造器详细资料
-
ResponseUtils
public ResponseUtils()
-
-
方法详细资料
-
out
使用 response 输出JSON- 参数:
message
- 消息
-
out
使用 response 输出JSON- 参数:
builder
- 结果
-
out
使用 response 输出JSON- 参数:
response
- 响应builder
- 结果
-
getResponse
public static void getResponse(jakarta.servlet.http.HttpServletResponse httpServletResponse, String message, Integer status) 响应内容- 参数:
httpServletResponse
- 响应message
- 消息status
- 状态
-