package com.kakao.map.controller;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
@Controller
public class PageLoadTestController {
@RequestMapping(value ="/t1", method = RequestMethod.GET)
public String test1(){
System.out.println("t1요청 들어옴?");
return "test1";
}
}
test1() 이라는 요청 --> "test1" 이라는 html 파일로 응답함
주소창에 localhost:8000/t1 이라고 입력하는 것은 GET 요청이다.
'web 개발 > spring' 카테고리의 다른 글
<spring> intelij 설정 (0) | 2022.12.07 |
---|---|
<suvlet> eclipse 초기 세팅 (0) | 2022.12.03 |
http 프로토콜 (0) | 2022.11.30 |
<spring> 테스트 페이지 생성 (0) | 2022.11.28 |
BackEnd 개요 (0) | 2022.11.28 |