본문 바로가기

개발/개발환경설정12

LOG4J 설정 1. pom.xml log4j log4j ${log4j-version} 2. log4j 위치 WEB-INF\classes directory 3. log4j.xml 4. Controller package secretary.common.controller; import java.util.Locale; import org.apache.log4j.LogManager; import org.apache.log4j.Logger; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Controller; import org.springframework.ui.Model; import org.sp.. 2020. 3. 17.
MySQL 연결 1. pom.xml org.springframework spring-tx ${org.springframework-version} org.mybatis mybatis-spring ${mybatis-spring-version} org.springframework spring-jdbc ${org.springframework-version} mysql mysql-connector-java ${mysql-version} org.mybatis mybatis ${org.mybatis-version} 2. root-context.xml 3. mybatis-config.xml 4. mapping-query-*.xml SELECT NOW() 5. 서비스 생성 package secretary.common.service; i.. 2020. 3. 16.
Spring MVC 설정 1. WEB.XML 설정 1-1) 리스너 등록, 루트 컨텍스트 등록 contextConfigLocation classpath:/spring/root-context.xml org.springframework.web.context.ContextLoaderListener 1-2) UTF-8 인코딩 encodingFilter org.springframework.web.filter.CharacterEncodingFilter encoding UTF-8 encodingFilter /* 1-3) DispacherServlet으로 앞단에서 요청정보를 핸들링 해줌 appServlet org.springframework.web.servlet.DispatcherServlet contextConfigLocation classp.. 2020. 3. 12.
개발환경설정 1. openJDK 다운로드 https://jdk.java.net/ JDK Builds from Oracle jdk.java.net 2. eclipse 다운로드 https://www.eclipse.org/downloads/packages/ Eclipse Packages | The Eclipse Foundation - home to a global community, the Eclipse IDE, Jakarta EE and over 350 open source pro 446 MB 3,622 DOWNLOADS The Modeling package provides tools and runtimes for building model-based applications. You can use it to graphi.. 2020. 2. 15.