コード例 #1
0
 @ResponseBody
 @RequestMapping(value = "/configuration/save", method = RequestMethod.POST)
 public String save(@RequestBody Account formAcc) {
   accDao.save(formAcc);
   return "{\"status\" : 200}";
 }
コード例 #2
0
 @RequestMapping(value = "/accountProperties", method = RequestMethod.GET)
 @ResponseStatus(value = HttpStatus.OK)
 @ResponseBody
 public Account getAccountProperties() throws ConfigurationException {
   return accDao.getAccountByID(SessionController.account.getAccountID());
 }
コード例 #3
0
 @RequestMapping(value = "/configuration/{accID}", method = RequestMethod.GET)
 @ResponseBody
 public Account configuration(@PathVariable("accID") Integer accID) {
   return accDao.getAccountByID(accID);
 }