package com.gescc.hedwig.controller;

public class UserController {

}

@@ -35,37 +35,1269 @@
 r;%0A%0A
-public class UserController %7B%0A
+import java.util.HashMap;%0A%0Aimport javax.servlet.http.HttpServletRequest;%0Aimport javax.servlet.http.HttpServletResponse;%0A%0Aimport org.slf4j.Logger;%0Aimport org.slf4j.LoggerFactory;%0Aimport org.springframework.beans.factory.annotation.Autowired;%0Aimport org.springframework.stereotype.Controller;%0Aimport org.springframework.web.bind.annotation.RequestBody;%0Aimport org.springframework.web.bind.annotation.RequestMapping;%0Aimport org.springframework.web.bind.annotation.RequestMethod;%0Aimport org.springframework.web.bind.annotation.ResponseBody;%0A%0Aimport com.gescc.hedwig.service.UserService;%0Aimport com.gescc.hedwig.view.ResultView;%0Aimport com.gescc.hedwig.vo.User;%0A%0A/**%0A* UserController%0A* %0A* @author geine%0A* @date 2016.12.22%0A* @version a%0A*/%0A%0A@Controller%0A@RequestMapping(%22/users%22)%0Apublic class UserController %7B%0A%0A%09private Logger LOG = LoggerFactory.getLogger(UserController.class);%0A%09%0A%09@Autowired%0A%09private UserService service;%0A%09%0A%09@ResponseBody%0A%09@RequestMapping(method = RequestMethod.POST)%0A%09public ResultView createUser(HttpServletRequest req, HttpServletResponse res, @RequestBody User user)%7B%0A%09%09%0A%09%09LOG.info(%22craete user : %22 + user.toString());%0A%09%09try %7B%0A%09%09%09service.createUser(user);%0A%09%09%7D catch (Exception e) %7B%0A%09%09%09throw e;%0A%09%09%7D%0A%09%09%0A%0A%09%09return new ResultView(%22200%22, %22Success%22);%0A%09%7D
 %0A%7D%0A

Add UserController