@ResponseBody
	@RequestMapping(value="word.do",method=RequestMethod.POST)
	public String addWord(HttpServletRequest request,HttpServletResponse response,Model model ){
		String word=request.getParameter("word");
		String meaning=request.getParameter("meaning");
		String example=request.getParameter("example");
		String exampleMeaning=request.getParameter("exampleMeaning");
		if(word==null||meaning==null||example==null||exampleMeaning==null){
			try {
				response.sendError(400, "bad request");
				return null;
			} catch (IOException e) {
				// TODO Auto-generated catch block
				e.printStackTrace();
			}
		}
		try {
			String msg= IOUtils.toString(request.getInputStream());
			System.out.println("msg is "+msg);
		} catch (IOException e) {
			System.out.println(e.toString());
			e.printStackTrace();
		}
		WordInfo info =new WordInfo(word,meaning,example,exampleMeaning);
		System.out.println("word is "+info.toString());
		//int id=wordMapper.addWord(word,meaning,example,exampleMeaning);
		wordMapper.insertWord(info);
		int id=info.getId();
		System.out.println("id="+id);
		return "success";
	}