boot3:适合 ServletUtils

This commit is contained in:
YunaiV
2023-04-16 21:40:56 +08:00
parent d23ed5a61d
commit e5fcc7a387
10 changed files with 40 additions and 21 deletions

View File

@ -25,4 +25,8 @@ public class ServletUtils {
ServletUtil.write(response, content, MediaType.APPLICATION_JSON_UTF8_VALUE);
}
public static void write(HttpServletResponse response, String text, String contentType) {
ServletUtil.write(response, text, contentType);
}
}