본문 바로가기

스프링12

Aspectj + 어노테이션으로 로그남기기 1. pom.xml org.aspectj aspectjrt ${org.aspectj-version} org.aspectj aspectjweaver ${org.aspectj-version} org.aspectj aspectjtools ${org.aspectj-version} 2. servelt-context.xml aspectJ설정 3. Annotation Interface 설정 package secretary.common.annotation; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annota.. 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.