분류 전체보기

    gradle Mybatis oracle 연동

    나는 다음과 같이 Controller,Dto,Mapper,Service의 패키지로 나눠서 각각 관리를 했다 구현체로 interface를 사용하였다. spring.datasource.driver-class-name=oracle.jdbc.OracleDriver spring.datasource.url=자신의 URL spring.datasource.username=아이디 spring.datasource.password=비밀번호 #mybatis Support mybatis.mapper-locations=classpath:Mybatis/**/*.xml spring.thymeleaf.cache=false application properties 는 다음과같이 설정을 해주면 된다 build.gradle implemen..

    AOP란 무엇인가

    AOP는 공통관심사항과 핵심관심사항을 분리시켜논다. 모든회원의 로그인하는 시간 또는 내가 실행하는 모든 패키지에 대해 시간을 측정해줄수있다. 다음소스는 Mapper,Service,Controller에서 실행되는 메서드들의 실행시간을 측정하는 소스이다. package com.example._0816test2.AOP; import org.aspectj.lang.ProceedingJoinPoint; import org.aspectj.lang.annotation.Around; import org.aspectj.lang.annotation.Aspect; import org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint; import org.spr..