import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
public class WebUtil {
public static String renderString(HttpServletResponse response,String string){
try {
response.setStatus(200);
response.setContentType("application/json");
response.setCharacterEncoding("utf-8");
response.getWriter().print(string);
} catch (IOException e) {
throw new RuntimeException(e);
}
return null;
}
}
WebUtil
最新推荐文章于 2025-04-11 00:16:46 发布