전자정부프레임워크 시작하기

전자정부프레임워크 시작하기
전자정부프레임워크 튜토리얼

1 개발환경 다운로드

  • http://www.egovframe.go.kr 접속, 회원가입, 로그인
  • '다운로드' 메뉴 클릭
  • [↓ 표준프레임워크 통합다운로드] 클릭
  • eGovFrameDev-3.6.0-64bit.exe [672,580,172 byte] 클릭하여 다운로드

EGovFrame-download.png

2 설치

  • eGovFrameDev-3.6.0-64bit.exe 실행
  • Extract to: C:\ --- [Extract]

3 이클립스 실행

  • 탐색기에서 C:\eGovFrameDev-3.6.0-64bit\eclipse 폴더로 이동
  • eclipse.exe 실행
  • Workspace: D:\workspace-egov --- [v] Use this as the default and do not ask again --- [OK]
  • 작업표시줄 Java EE IDE 아이콘 우클릭 --- 이 프로그램을 작업 표시줄에 고정

4 퍼스펙티브 설정

  • Window --- Perspective --- Open Perspective --- Other...
  • eGovFrame --- [OK]

5 프로젝트 생성

  • File --- New --- eGovFrame Web Project
  • Project name: HelloEGov --- Group Id: com.example --- [Next >]
  • [v] Generate Example --- [Finish]

6 톰캣 서버 등록

  • 하단 Servers 탭 선택
  • 'No servers are available. Click this link to create a new server...' 클릭[1]
  • Tomcat v7.0 Server 선택 --- [Next >]
  • [Download and Install...]
  • "Download and Install" --- [Finish]
  • "폴더 찾아보기" --- 내 PC --- D:\ --- workspace-egov --- [새폴더만들기(M)] --- Servers --- apache-tomcat-7.0.47 --- [확인]
( 백그라운드에서 톰캣 설치 진행. 오류가 잠깐 뜨는데, 설치가 완료되면 사라짐 )
  • [Finish]
  • 'Tomcat v7.0 Server at localhost [Stopped, Republish]' 우클릭 --- Start
  • 'Tomcat v7.0 Server at localhost [Started, Synchronized]' 우클릭 --- Stop
  • 'Tomcat v7.0 Server at localhost [Stopped, Synchronized]'

7 프로젝트 실행

  • Package Explorer 영역의 HelloEGov 우클릭 --- Run As --- Run On Server --- Tomcat v.7.0 Server at localhost --- [v] Always use this server when running this project --- [Finish]
하단 Console 영역이 활성화되며 다음이 출력됨
5월 11, 2017 2:11:40 오후 org.apache.catalina.core.AprLifecycleListener init
정보: The APR based Apache Tomcat Native library which allows optimal performance in production environments ...
... (생략)
2017-05-11 14:11:52,848 DEBUG [egovframework.rte.psl.orm.ibatis.SqlMapClientTemplate] Opened SqlMapSession [com.ibatis.sqlmap.engine.impl.SqlMapSessionImpl@3cc37864] for iBATIS operation
2017-05-11 14:11:52,848 DEBUG [egovframework.rte.psl.orm.ibatis.SqlMapClientTemplate] Obtained JDBC Connection [Transaction-aware proxy for target Connection  from DataSource [org.springframework.jdbc.datasource.SimpleDriverDataSource@64e28f74]] for iBATIS operation
5월 11, 2017 2:11:52 오후 org.apache.jasper.compiler.TldLocationsCache tldScanJar
정보: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during scanning can improve startup time and JSP compilation time.
상단 브라우저(기본 게시판 목록) 영역이 활성화되며 다음이 출력됨[2]

<img src='http://www.egovframe.go.kr/wiki/lib/exe/fetch.php?media=egovframework:dev2:basicsample.jpg'/>

  • 하단 Console 창에서 ■ 버튼을 누르면 애플리케이션(+톰캣)이 정지됨

8 같이 보기

9 참고 자료

  1. 또는 우클릭 --- New --- Server
  2. 단, 여기서는 URL주소가 http://localhost:8080/HelloEGov/
문서 댓글 ({{ doc_comments.length }})
{{ comment.name }} {{ comment.created | snstime }}