struts1 환경설정 + iBatis 설치

수진·2023년 2월 8일
0

환경설정하기

목록 보기
4/8
post-thumbnail

struts1 설치

  1. struts 다운로드에 접속해서 struts파일 다운받기

  2. lib폴더에 jar파일들 넣기
    (압축해제하지 않은 상태에서 lib폴더에 드래그&드롭으로 넣어준다)

struts1 환경 설정

  1. WEB-INFstruts-config 이름으로 XML파일 만들기

  2. struts-config_temp.xml 파일도 만들어준다.
    (struts-config.xml은 공통된 내용의 환경설정을 해주는 곳이고, struts-config_temp는 그때그때 맞춰서 바꿔주기 위해 복사본을 만들기 위한 형태를 만들어놓은 것)

  • 두 개 파일 모두 아래 내용 써준다.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE struts-config
PUBLIC "-//Apache Software Foundation//DTD Struts cConfiguration 1.3//EN"
"http://struts.apache.org/dtds/struts-config_1_3.dtd">

<struts-config>



</struts-config>

struts-config.xml

  • 공통된 내용의 환경설정을 진행해주는 곳

struts-config_temp.xml

  • 그때그때 맞춰서 바꿔주는 부분(기능에 맞게 설정)
  • 게시판이면 게시판에 맞게 써주고 ...등등

  • core안에 기본문법이 다 들어가있음

iBatis 설치

  • iBatis설치페이지에서 iBatis파일 받아준다.
    (나는 ibatis-2.3.4.726버전 받았음.)

  • struts와 마찬가지로 lib에 jar파일 드래그&드롭 해주기


  • 이렇게 해주면 struts1과 ibatis의 기본 설치는 끝!

0개의 댓글