Package net.baguajie.exceptions

Examples of net.baguajie.exceptions.ResourceNotFoundException


  @RequestMapping(value="/cmt/{id}/view/{type}", method=RequestMethod.GET)
  public String view(@PathVariable String id,
      @PathVariable String type, Model model,
      HttpServletRequest request, HttpSession session){
    if(!ajaxUtil.isAjaxRequest(request)){
      throw new ResourceNotFoundException();
    }
    Comment cmt = commentRepository.findOne(id);
    model.addAttribute("cmt", cmt);
    return "ops/cmt."+ type;
  }
View Full Code Here


  }
 
  @RequestMapping(value="/search/marker", method=RequestMethod.GET)
  public @ResponseBody AjaxResult marker(Model model, HttpServletRequest request){
    if(!ajaxUtil.isAjaxRequest(request)){
      throw new ResourceNotFoundException();
    }
    Iterable<Spot> spots = doSearch(request, true);
    Collection<MarkerVo> markers = new ArrayList<MarkerVo>();
    if(spots!=null){
      for(Spot spot : spots){
View Full Code Here

TOP

Related Classes of net.baguajie.exceptions.ResourceNotFoundException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.