4. Welcome page 만들기

MYUNGSUN·2024년 2월 17일
0

스프링부트

목록 보기
4/16

resources - static - index.html 생성 후 작성

<!DOCTYPE HTML>
<html>
<head>
    <title>Hello</title>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
Hello
<a href="/hello">hello</a>
</body>
</html>

@SpringBootApplication 어노테이션이 붙은 메인 클래스를 서버 시작 해준다.

  • tomcat 웹서버를 자동으로 시작

아래 터미널에서 포트를 확인 (보통 8080이지만 간헐적 다름)

인터넷을 실행 후 주소창에 localhost:8080을 입력, 스크린샷 처럼 나오면 정상작동

profile
백엔드

0개의 댓글

관련 채용 정보