SSB를 실행하고 localhost:8080에 접속을 해보자!
다음과 같은 페이지가 출력된다.
package com.chan.ssb;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;
@Controller
public class MainController {
@GetMapping("/")
@ResponseBody
public String index() {
return "Hello index!";
}
}