@MultipartConfig
public class TitMsgServlet extends HttpServlet {
public void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException
{
request.setCharacterEncoding("utf-8");
response.setCharacterEncoding("utf-8");
String savePath = request.getServletContext().getRealPath("/upload");
Part part = request.getPart("img");