Spring_setting


Published on August 08, 2021 by Eunbi.N

스프링 세팅 Spring Legacy Project pom.xml

  1. spring 설치 - STS / eclipse-marketplace

  2. maven, apache tomcat, jQuery, ojdbc6, taglibs(compat,impl,jstlel,spec) : setting check

  3. 인코딩 - preferences encoding UTF-8, spelling UTF-8;

    *tip) java 자동완성 툴 : preference - editor - content assist - autoActivation java
    → .qwertyuioplkjhgfdsazxcvbnm_QWERTYUIOPLKJHGFDSAZXCVBNM

  4. Spring Legacy Project 생성

  5. pom.xml : DB연결 Lib, Security Lib, 파일업로드 Lib,..→ mvnrepository.com

    pom.xml

  6. web.xml : Servlet Mapping, 인코딩필터, 공용에러페이지 (exception→error) 등록

    context-param(root-context, servlet-context, security.xml)

    web.xml

    servlet-context.xml

    member-context.xml

    security.xml

  7. root-context : bean객체 생성

    (driver, sqlSession, Template, transaction 등록), 파일업로드 bean, size 규정

    root-context .xml

  8. mybatisconfig : window- preferences - xml Catalog Entries -> DTD 등록

    mybatis-config.xml

  9. mappers - 매퍼 등록 (쿼리 연결) window- preferences - xml Catalog Entries - DTD 등록

    member-mapper .xml

    board-mapper .xml