반응형
Notice
Recent Posts
Recent Comments
Link
목록로컬서버 (1)
투케이2K
30. (spring/스프링) RestApi 사용해 로컬 서버에 저장된 텍스트 (text) 파일 호출 및 내용 표시 실시
[개발 환경 설정] 개발 툴 : inteli j 개발 언어 : spring [소스코드 : 컨트롤러] // [GET 방식 : map] // [경로 지정 : http://localhost:7000/showText?file=test.txt] // [로직 : 서버 로컬 pc에 저장 된 텍스트 파일 >> 바이트 리턴 반환 >> 텍스트 내용 표시 실시] @GetMapping("/showText") public ResponseEntity showText(@RequestParam Map param) { System.out.println("\n"); System.out.println("======================================="); System.out.println("[ModuleA..
Spring
2021. 9. 16. 19:52