Skip to content

Instantly share code, notes, and snippets.

@dvbeato
Created April 6, 2015 12:18
Show Gist options
  • Select an option

  • Save dvbeato/f8278fd92b87eded36cb to your computer and use it in GitHub Desktop.

Select an option

Save dvbeato/f8278fd92b87eded36cb to your computer and use it in GitHub Desktop.
@ResponseBody
@RequestMapping
public ResponseEntity loadData(Integer diretorioKey) {
Map<String, Object> data = Maps.newHashMap();
data.put("diretorios", diretorioService.list());
data.put("arquivos", diretorioService.listarArquivosPor(diretorioKey));
return new ResponseEntity<>(data, HttpStatus.OK);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment