Index: core-module/pom.xml =================================================================== diff -u -rcd4d1fc7ef434e1b6acbea8d6556ff6d2fd7e63b -r3e80c66d7ee106dc4bb03f126d02dc4e9de932e1 --- core-module/pom.xml (.../pom.xml) (revision cd4d1fc7ef434e1b6acbea8d6556ff6d2fd7e63b) +++ core-module/pom.xml (.../pom.xml) (revision 3e80c66d7ee106dc4bb03f126d02dc4e9de932e1) @@ -7,7 +7,7 @@ 313devgrp jstree-project - 19.07.30 + 19.07.31 ../pom.xml @@ -31,7 +31,7 @@ 313devgrp lib-module - 19.07.30 + 19.07.31 pom Index: core-module/src/main/java/egovframework/com/ext/jstree/support/security/controller/RegistrationController.java =================================================================== diff -u -rcd4d1fc7ef434e1b6acbea8d6556ff6d2fd7e63b -r3e80c66d7ee106dc4bb03f126d02dc4e9de932e1 --- core-module/src/main/java/egovframework/com/ext/jstree/support/security/controller/RegistrationController.java (.../RegistrationController.java) (revision cd4d1fc7ef434e1b6acbea8d6556ff6d2fd7e63b) +++ core-module/src/main/java/egovframework/com/ext/jstree/support/security/controller/RegistrationController.java (.../RegistrationController.java) (revision 3e80c66d7ee106dc4bb03f126d02dc4e9de932e1) @@ -1,44 +1,31 @@ package egovframework.com.ext.jstree.support.security.controller; -import java.io.IOException; - -import javax.servlet.ServletException; -import javax.servlet.http.HttpServletRequest; -import javax.servlet.http.HttpServletResponse; - -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.web.bind.annotation.*; -import org.springframework.web.servlet.ModelAndView; - import egovframework.com.ext.jstree.support.security.dto.LocalUser; import egovframework.com.ext.jstree.support.security.dto.UserRegistrationForm; import egovframework.com.ext.jstree.support.security.exception.UserAlreadyExistAuthenticationException; import egovframework.com.ext.jstree.support.security.service.UserService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.web.bind.annotation.*; +import org.springframework.web.servlet.ModelAndView; @RestController public class RegistrationController { @Autowired private UserService userService; - @RequestMapping(value = "/signup", method = RequestMethod.GET) - public ModelAndView signup(HttpServletRequest request, HttpServletResponse response) throws ServletException,IOException { - ModelAndView model = new ModelAndView(); - model.addObject("title", "User Registration Form"); - model.setViewName("egovframework/com/ext/jstree/support/security/registration"); - return model; - } - + @ResponseBody @RequestMapping(value = {"/user/register"}, method = RequestMethod.POST, consumes = "application/json", produces = "application/json") - public @ResponseBody String registerUser(@RequestBody UserRegistrationForm registrationForm) throws UserAlreadyExistAuthenticationException { + public ModelAndView registerUser(@RequestBody UserRegistrationForm registrationForm) throws UserAlreadyExistAuthenticationException { if (registrationForm.getUserId() == null) { registrationForm.setUserId(registrationForm.getUserId()); } LocalUser localUser = (LocalUser) userService.registerNewUser(registrationForm); - return "success"; - + ModelAndView modelAndView = new ModelAndView("jsonView"); + modelAndView.addObject("result", "add user success"); + return modelAndView; } } Index: lib-module/pom.xml =================================================================== diff -u -rcd4d1fc7ef434e1b6acbea8d6556ff6d2fd7e63b -r3e80c66d7ee106dc4bb03f126d02dc4e9de932e1 --- lib-module/pom.xml (.../pom.xml) (revision cd4d1fc7ef434e1b6acbea8d6556ff6d2fd7e63b) +++ lib-module/pom.xml (.../pom.xml) (revision 3e80c66d7ee106dc4bb03f126d02dc4e9de932e1) @@ -5,7 +5,7 @@ 313devgrp jstree-project - 19.07.30 + 19.07.31 ../pom.xml Index: pom.xml =================================================================== diff -u -rcd4d1fc7ef434e1b6acbea8d6556ff6d2fd7e63b -r3e80c66d7ee106dc4bb03f126d02dc4e9de932e1 --- pom.xml (.../pom.xml) (revision cd4d1fc7ef434e1b6acbea8d6556ff6d2fd7e63b) +++ pom.xml (.../pom.xml) (revision 3e80c66d7ee106dc4bb03f126d02dc4e9de932e1) @@ -10,7 +10,7 @@ 4.0.0 313devgrp jstree-project - 19.07.30 + 19.07.31 pom jstree-project