목록SPRING/chapter01_overview (10)
WON.dev
4.0.0 org.joonzis controller chapter01_overview war 1.0.0-BUILD-SNAPSHOT 1.6 3.1.1.RELEASE 1.6.10 1.6.6 org.springframework spring-context ${org.springframework-version} commons-logging commons-logging org.springframework spring-webmvc ${org.springframework-version} org.aspectj aspectjrt ${org.aspectj-version} org.slf4j slf4j-api ${org.slf4j-version} org.slf4j jcl-over-slf4j ${org.slf4j-version}..
contextConfigLocation /WEB-INF/spring/root-context.xml org.springframework.web.context.ContextLoaderListener appServlet org.springframework.web.servlet.DispatcherServlet contextConfigLocation /WEB-INF/spring/appServlet/servlet-context.xml 1 appServlet / encodingFilter org.springframework.web.filter.CharacterEncodingFilter encoding utf-8 forceEncoding true encodingFilter /*
Hello world! The time on the server is ${serverTime}.
package org.joonzis.controller; import java.text.DateFormat; import java.util.Date; import java.util.Locale; import org.slf4j.Logger; import org.slf4j.LoggerFactory; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; /** * Handles reques..
1. Framework 1) 사전적 의미는 뼈대 혹은 틀로서 소프트웨어 관점에서 접근하면 아키텍처이 해당하는 골격 코드이다. - 어플리케이션의 구조를 결정하는 코드를 프레임워크가 제공한다. 2) 장점 - 빠른 구현 시간 - 쉬운 관리 - 개발자들의 역량 획일화 2. Spring 1) JDK 버전 처리 - 프로젝트 우클릭 Properties -> Project Facets, Java Compiler 확인 2) Maven의 주 용도(pom.xml) - 프로젝트에 필요한 의존적인 라이브러리를 자동으로 관리해주는 용도 3) MVC 프로젝트 템플릿의 구조 src/main/java개발되는 java 코드의 경로 src/main/resources서버가 실행될 때 필요한 파일들의 경로 src/test/java테스트 전용..
1. 개발 환경 1) 언어 : JDK 8 - https://www.oracle.com/java/technologies/javase-downloads.html 2) 툴 : STS - 이클립스[Help] -> [Eclipse MarketPlace..]선택 -> Spring으로 검색 -> Spring Tools 3 플러그인 설치 3) 웹 서버 : Tomcat - http://tomcat.apache.org/download-90.cgi 4) DataBase : Oracle(11g Express Edition) - https://www.oracle.com/database/technologies/xe-prior-releases.html - 데이터 학습용 2. 롬복 (Lombok) - 코드량을 줄여주는 java 어노..