first commit

This commit is contained in:
2023-05-04 19:53:10 +08:00
parent 6adac3aeb1
commit 3ecf1ecc7e
16 changed files with 411 additions and 96 deletions

View File

@ -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);
}
}