study/java
전자정부프레임워크기반 게시판 만들기 (2)
intseq
2021. 12. 30. 20:49
예제코드삭제/수정
[eGovFramework] Spring 기반 웹 프로젝트 만들기(2) : sample 삭제
[eGovFramework] Spring 기반 웹 프로젝트 만들기(2) : sample 삭제 Spring 기반 웹 프로젝트 만들기(1) [eGovFramework] Spring 기반 웹 프로젝트 만들기(1) : 프로젝트 생성 [eGovFramework] Spring 기..
haenny.tistory.com
위 게시물대로 예제코드 삭제 후 패키지명은 따로 바꿔주지않고 진행했다.
JSP페이지 연결
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
package egovframework.example.cmmn.web;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
@Controller
public class TestController {
@RequestMapping(value="/testList.do")
public String testListDo(){
return "test/testList";
}
}
|
cs |
TestController.java
1
2
3
4
5
6
7
8
9
10
11
12
|
<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
Hello World!
</body>
</html>
|
cs |
WEB-INF/jsp/test/testList.jsp
서버 실행 후 localhost:8080/testList.do 접속

좋아요공감
공유하기
글 요소
출처: https://ivory-room.tistory.com/59?category=875739 [개발로 자기개발]