2014년 4월 24일 목요일

20140424 applicationContext.xml 에서 에러가?!

applicationContext.xml에서 주의할 점

1. 띄어쓰기

<aop:config>
<aop:pointcut id="serviceMethods" expression="execution(* logic.ShopImpl.*(..))" /> <<-- *뒤에 한칸 띄우기
<aop:advisor advice-ref="txAdvice" pointcut-ref="serviceMethods"/>
</aop:config>

2. lib파일 지정

<tx:advice id="txAdvice" transaction-manager="transactionManager">
<tx:attributes>
<tx:method name="entryUser" propagation="REQUIRED" rollback-for="Exception"/>
<tx:method name="checkout" propagation="REQUIRED" rollback-for="Exception"/>
<tx:method name="*" propagation="SUPPORTS" read-only="true"/>
</tx:attributes>
</tx:advice>
-->http://www.eclipse.org/aspectj/downloads.php 에서 aspectj-x.x.x.jar 파일 다운

3. xml에서 aop설정시 필요한듯

http://grepcode.com/snapshot/repository.springsource.com/org.aopalliance/com.springsource.org.aopalliance/1.0.0
에서  com.springsource.org.aopalliance-1.0.0.jar 파일 다운
라이브러리에 넣기

4. 역시나 라이브러리 문제

Error creating bean with name 블라블라
이런 에러가 보이면
aspectjweaver-1.6.2.jar 파일을 다운받아 라이브러리로

댓글 없음:

댓글 쓰기