Spring 프로젝트안에
resources 폴더 -> static 폴더 -> new file -> index.html 생성
index.html 파일에 아래의 html코드 작성 (hello 문구 출력되는 페이지 생성)
<!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>
[Spring] 인텔리제이 Java version 확인, 환경변수 JAVA_HOME 확인/변경 방법 (2) | 2024.02.27 |
---|---|
[Spring] thymeleaf 템플릿 엔진 사용 예시 (feat. @Controller, @Getmapping, Model, viewResolver) (0) | 2024.02.26 |
[Spring] Spring boot 프로젝트 welcome page 어디에?? (인텔리제이) (feat. Spring boot 정보 찾기) (2) | 2024.02.26 |
[Spring] 김영한 - 스프링 입문 (인텔리제이 run 설정) (0) | 2024.02.26 |
Spring 프로젝트 생성하기 (start.spring.io 를 활용해서) (0) | 2024.02.23 |