1 ) AOP 초기 셋팅

각 자리에 맞추어 세팅해주세요

 

xmlns:aop="http://www.springframework.org/schema/aop"
    
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-4.1.xsd"
    
<aop:aspectj-autoproxy />

 


pom.xml 파일에 <dependency> 를 추가해준다

		
		<!-- AspectJ -->
		<dependency>
			<groupId>org.aspectj</groupId>
			<artifactId>aspectjrt</artifactId>
			<version>${org.aspectj-version}</version>
		</dependency>	
		
		<dependency>
		   <groupId>org.aspectj</groupId>
		   <artifactId>aspectjweaver</artifactId>
		   <version>1.6.11</version>
		 </dependency>
	
	    <dependency>
		  <groupId>org.springframework</groupId>
		  <artifactId>spring-aop</artifactId>
		  <version>${org.springframework-version}</version>
	    </dependency>

 

복사했습니다!