Spring file download (파일 다운로드)
스프링에서 파일 다운로드 하는 예제입니다. Controller에서 구현하였습니다. 자세한 소스는 http://huskdoll.tistory.com/537 를 참고하세요.^^ 12345678910111213141516@RequestMapping("/filedown")//URL호출public void getFile(@RequestParam Map map, HttpServletResponse response) throws Exception { String filePath = (String) map.get("filePath"); //파일 전체경로(파일명도 포함) String oriFileName = (String) map.get("oriFileName"); //파일 원본 경로 String docName = UR..
Spring
2015. 7. 8. 16:35