瀏覽代碼

Spelling is hard.

msmith-techempower 11 年之前
父節點
當前提交
ccf0b6fc69
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      frameworks/Java/servlet/src/main/java/hello/FortunesServlet.java

+ 1 - 1
frameworks/Java/servlet/src/main/java/hello/FortunesServlet.java

@@ -31,7 +31,7 @@ public class FortunesServlet extends HttpServlet
       throws ServletException, IOException
   {
     // Set content type to JSON
-    res.setCharacterEncodring(UTF8);
+    res.setCharacterEncoding(UTF8);
     res.setContentType(CONTENT_TYPE_HTML_UTF8);
 
     final List<Fortune> fortunes = new ArrayList<>();