[만들고자 하는 브랜치의 모습] //1. star.txt 생성 , commit , push echo '혜성 1' >> star.txt git add . git commit -m "혜성 1" git push //2. star.txt 에 "혜성 2" 내용 추가 , commit , push git add . git commit -m "혜성 2" git push //3. star.txt 에 "혜성 3" 내용 추가 , commit , push git add . git commit -m "혜성 3" git push 1. 현재("혜성 3") 브랜치를 "main" 으로 한다. "혜성 3" 인 현재 Branch 는 "main" 임을 확인. 2. "혜성 3" 에서 이어지는 브랜치 "Hoo"를 생성하고, star.txt 에..
분류 전체보기
package project.footballinfo.controller; import org.springframework.cache.annotation.Cacheable; import org.springframework.data.domain.Page; import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.Pageable; import org.springframework.http.RequestEntity; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.*; import org.spr..
package project.footballinfo.controller; import org.springframework.cache.annotation.Cacheable; import org.springframework.http.RequestEntity; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.ResponseBody; import org.springframework..
package project.footballinfo.controller; import org.springframework.cache.annotation.Cacheable; import org.springframework.http.RequestEntity; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; import org.springframework.web.bind.annotation.ResponseBody; import org.springframework..
package project.footballinfo.controller; import lombok.RequiredArgsConstructor; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.GetMapping; import java.io.IOException; import java.util.*; @Controller @RequiredArgsConstructor public class HomeController { /** * 외부 API 를 이용 * 화면에 출력 */ @GetMapping("/") public Str..
package project.footballinfo.controller; import org.springframework.http.RequestEntity; import org.springframework.http.ResponseEntity; import org.springframework.web.client.RestTemplate; import java.util.Map; public class ApiResponse { /** * API 요청 (URL을 통한) * * @param requestURL : API 요청 URL * @return : API 응답값 */ public static ResponseEntity getAPIResponse(String requestURL) { RestTemplate re..