[Practice] 클라이언트 요청에 대한 주소 만들기 (5)
1. 문제 Rest 컨트롤러 형식의 어노테이션 이용 주소매핑은 Rest 형식의 어노테이션 이용 HTTP 메서드는 GET 방식 리턴값은 "hello rest api" 문자열 리턴 주소는 "/api/helloworld" 2. 풀이 package com.example.jpa.sample; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.RestCont..
2021.04.12