first commit
This commit is contained in:
@ -0,0 +1,21 @@
|
||||
package com.qiaoba.common.web.utils;
|
||||
|
||||
import javax.servlet.http.HttpServletResponse;
|
||||
import java.io.IOException;
|
||||
|
||||
/**
|
||||
* ResponseUtil
|
||||
*
|
||||
* @author ailanyin
|
||||
* @version 1.0
|
||||
* @since 2023-04-25 22:48:43
|
||||
*/
|
||||
public class ResponseUtil {
|
||||
|
||||
public static void response(HttpServletResponse response, String msg) throws IOException {
|
||||
response.setStatus(HttpServletResponse.SC_OK);
|
||||
response.setContentType("text/plain; charset=UTF-8");
|
||||
response.getWriter().write(msg);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user