minlog
article thumbnail
[ HTTP / 네트워크 ] @RestController - API POST 방식 사용하는 방법
BackEnd/HTTP 2023. 2. 26. 02:10

API POST 방식을 사용하는 방법 메서드 의미 CRUD 멱등성 안정성 Path Variable Query Parameter DataBody GET 리소스 취득 R (read) o o o o x POST 리소스 생성,추가 C (create) x x o △ o PUT 리소스 갱신,생성 C / U (update) o x o △ o DELETE 리소스 삭제 D o x o o - HEAD 헤더데이터 취득 - o o - - - OPTIONS 지원하는 메서드 취득 - o - - - - TARCE 요청 메시지 반환 - o - - - - CONNECT 프록시 동작의 터널 접속으로 변경 - x - - - - 1) Post 를 받아주는 어노테이션 Post 방식은 데이터를 Body에 담아서 보내주는데, 해당 값을 받기 위..

[ HTTP / 네트워크 ] @RestController - API GET 방식 사용하는 방법
BackEnd/HTTP 2023. 2. 26. 02:09

API GET 방식을 사용하는 방법 메서드 의미 CRUD 멱등성 안정성 Path Variable Query Parameter DataBody GET 리소스 취득 R (read) o o o o x POST 리소스 생성,추가 C (create) x x o △ o PUT 리소스 갱신,생성 C / U (update) o x o △ o DELETE 리소스 삭제 D o x o o - HEAD 헤더데이터 취득 - o o - - - OPTIONS 지원하는 메서드 취득 - o - - - - TARCE 요청 메시지 반환 - o - - - - CONNECT 프록시 동작의 터널 접속으로 변경 - x - - - - 1. GET 방식 파라미터 @GetMapping( "/ URI " ) http://localhost:9090/ap..

article thumbnail
[ Spring / SpringBoot ] 스프링 웹 개발 기초 : 정적 컨텐츠 / MVC / API
BackEnd/Spring Boot 2023. 2. 25. 00:04

1. 정적 컨텐츠 스프링 부트 정적 컨텐츠 기능이 있다. resources 폴더안에 static 폴더에 정적인 컨텐츠는 컨트롤러가 없어도 해당 URI가 자동으로생성된다. Spring Boot Features Spring Boot Features Graceful shutdown is supported with all four embedded web servers (Jetty, Reactor Netty, Tomcat, and Undertow) and with both reactive and Servlet-based web applications. It occurs as part of closing the application context and is performed in the earliest docs...

article thumbnail
[ Spring / SpringBoot ] View 환경설정
BackEnd/Spring Boot 2023. 2. 24. 19:56

View 환경설정 1. Welcome Page 만들기. 스프링 부트가 제공하는 Welcome Page 기능. static/index.html 을 올려두면 Welcome page 기능을 제공한다. 💡 thymeleaf 템플릿 엔진 thymeleaf 공식 사이트: https://www.thymeleaf.org/ 스프링 공식 튜토리얼: https://spring.io/guides/gs/serving-web-content/ 스프링부트 메뉴얼: https://docs.spring.io/spring-boot/docs/2.3.1.RELEASE/reference/ html/spring-boot-features.html#boot-features-spring-mvc-template-engines 💡 thymeleaf 템플..

article thumbnail
[ Spring / SpringBoot ] 스프링부트 프로젝트 생성 및 실행 시켜보기
BackEnd/Spring Boot 2023. 2. 24. 19:55

프로젝트 생성 1) Java 11버전 설치 2) IDE는 인텔리제이 또는 이클립스 설치 3) 스프링 / 부트 Start 사이트로 이동해서 스프링 프로젝트 생성 ( https://start.spring.io ) 필요한 라이브러리 및 빌드까지 관리해주는 툴 Group : 기업 명칭 project : maven / gradle (요즘은 대부분 그래이들 사용) lenguage : java Spring Boot : 2.3.1 Artifact : 프로젝트명 (결과물) Dependencies : 어떤 라이브러리를 쓰는지 = > 웹프로젝트 Spring wep , 웹 브라우저에서 보이는 html을 만들어주는 탬플릿 API Thymeleaf GENERATE 로 다운로드 받기 4) 인텔리제이에서 빌드로 프로젝트 열기 - 선..