Spring Boot 14

[Spring Boot] Postman 으로 api 테스트해보기

이번 포스팅에서는 간단하게 postman으로 "Hello World!"를 출력하는 api를 작성해보겠다. 1. Download Postman https://www.postman.com/downloads/ Download Postman | Get Started for Free Try Postman for free! Join 20 million developers who rely on Postman, the collaboration platform for API development. Create better APIs—faster. www.postman.com 위 사이트 들어가서 postman을 다운받는다. 2. TestController 작성 @RestController @RequestMapping("/a..

Spring Boot 2022.05.30

[Spring Boot] 개발환경 설정 -(3) Swagger 적용하기 & Lombok 적용

1. swagger RestAPI로 데이터를 전달받을 계획이다. 안드로이드와 IOS 개발자가 결과물을 미리 테스트해서 볼 수 있도록 하기위해서 Swagger를 쓰려고 한다. Postman도 편리하긴 하지만 url을 일일이 입력해야 하는 불편함이 있고 다운받아야 해서 번거로운 것 같다. 회사에서 Swagger를 써보니 아주 편리하더라.. Swagger는 API 목록을 웹에서 확인 및 테스트할 수 있게 도와주는 Library이다. Controller에 정의된 모든 URL을 확인할 뿐만 아니라 목록, 명세 및 설명, 테스트까지 가능하다. 출처: https://data-make.tistory.com/550 [Data Makes Our Future:티스토리] 2. Lombok Lombok은 프로젝트 생성할 떄 d..

Spring Boot 2022.05.28

[Spring Boot] 개발환경 설정 -(2) Git 연동하기

전 포스팅에서 이어 생성했던 프로젝트를 Git과 연동해보려고 한다. https://dev-cini.tistory.com/5 [ GitHub ] 깃허브(GitHub) 연동하기 - 스프링(Spring) 깃허브 스프링 연동 1. 사이트 접속 !! https://github.com/ GitHub: Where the world builds software GitHub is where over 65 million developers shape the future of software, together. Contribute to the.. dev-cini.tistory.com 위의 블로그를 참고했다. 블로그 내용대로 GitHub에서 Repository를 하나 생성한다. 포스팅 하기 전에 이미 하나 만들었기때문에 현재..

Spring Boot 2022.05.28

[Spring Boot] 개발환경 설정 -(1) 프로젝트 생성

항상 개발환경 세팅하는게 제일 오래걸리는 듯하다. 특히 git... 며칠전에 자기전에 git연동 마치는 것을 목표로 했지만 생각보다 금방 끝나지 않아서 미뤄뒀다. 이번에 티스토리 첫 게시글 쓰는겸 스프링 부트 생성부터 처음부터 해보겠다. 1. Spring Boot 프로젝트 생성 https://spring.io/tools Spring Tools 4 is the next generation of Spring tooling Largely rebuilt from scratch, Spring Tools 4 provides world-class support for developing Spring-based enterprise applications, whether you prefer Eclipse, Visual ..

Spring Boot 2022.05.28