|
@@ -16,7 +16,7 @@ import java.io.IOException;
|
|
public class JsonServlet extends HttpServlet {
|
|
public class JsonServlet extends HttpServlet {
|
|
@Override
|
|
@Override
|
|
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
|
|
protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException {
|
|
- resp.setContentType("application/json");
|
|
|
|
|
|
+ resp.setContentType("application/json;charset=UTF-8");
|
|
resp.setBufferSize(0);
|
|
resp.setBufferSize(0);
|
|
JsonUtil.writeJsonBytes(resp, new Message("Hello, World!"));
|
|
JsonUtil.writeJsonBytes(resp, new Message("Hello, World!"));
|
|
}
|
|
}
|