분류 전체보기 31

Spring Array List Mapping / @InitBinder

package org.zerock.domain; import java.util.ArrayList; import java.util.List; import lombok.Data; @Data public class SampleDTOList { private List list; public SampleDTOList() { list = new ArrayList(); } } ​ 8월 25, 2020 10:38:41 오전 org.apache.coyote.AbstractProtocol start 정보: 프로토콜 핸들러 ["http-nio-1234"]을(를) 시작합니다. 8월 25, 2020 10:38:41 오전 org.apache.catalina.startup.Catalina start 정보: 서버가 [2,353] 밀..

카테고리 없음 2020.08.25

예제 프로젝트의 로딩 구조

프로젝트 구동 시 관여하는 xml은 web, root, servlet 파일이다. 이 중에 web.xml이 tomcat 구동과 관련된 설정이고, 나머지 두 파일은 스프링과 관련된 설정이다. 프로젝트 구동은 web xml에서 시작한다. web.xml 상단에는 가장 먼저 구동되는 Context Listener가 등록되어있다. contextConfigLocation /WEB-INF/spring/root-context.xml org.springframework.web.context.ContextLoaderListener 에는 root-context.xml의 경로가 설정되어 있고 에는 스프링 MVC의 Context Listener가 등록 되어 있는 것을 볼 수 있다. Context Loader Listener는 해..

카테고리 없음 2020.08.24

스프링 MVC의 기본 구조

XML을 이용하는 경우 ex01 (Spring Legacy Project 생성) > org.zerock.controller (패키지 지정) master로 변경됨 pom.xml 1.8 5.0.7.RELEASE 1.6.10 1.6.6 org.springframework spring-test ${org.springframework-version} org.projectlombok lombok 1.18.0 provided javax.servlet javax.servlet-api 3.1.0 provided org.apache.maven.plugins maven-compiler-plugin 2.5.1 1.8 1.8 -Xlint:all true true tomcat 연결 자바 설정을 이용하는 경우 jex01 (Spri..

개발 2020.08.24

오류해결 - Maven Plug in 오류 시 해결법 (빌드오류)

수행이 잘되다가 갑자기 pom.xml 에 war 태그에 빨간줄이 가면서 아래와 같은 에러메시지가 발생했다. Execution default-testResources of goal org.apache.maven.plugins:maven-resources-plugin:2.6:testResources failed: ............ 위와 비슷한 에러 메시지가 발생한다면, 1. 프로젝트 우클릭 -> Run As -> Maven install 2. 프로젝트 우클릭 -> Maven -> Project Update 이 절차로 해결~~!

카테고리 없음 2020.08.23