일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
- resource
- VirtualBox
- GIT
- 단축키
- xargs
- context
- maVen
- 네트워크
- plugin
- web.xml
- Quartz
- Eclipse
- vscode
- 줄바꿈 문자
- grep
- netsh
- tomcat
- JavaScript
- import
- profile
- Windows 10
- Source
- Mac
- Windows
- IntelliJ
- find
- lsof
- ssh
- bash
- port
- Today
- Total
목록Dev/Spring (18)
develog
execution(* *..service.*.*(..))=> service 패키지의 모든 클래스의 모든 메소드 execution(* *..*.*Service.*(..))=> Service 클래스의 모든 메소드
import java.util.List; import org.aspectj.lang.JoinPoint;import org.aspectj.lang.Signature;import org.apache.commons.logging.Log;import org.apache.commons.logging.LogFactory; public class LoggingAdvice { private Log logger = LogFactory.getLog(getClass()); public void before(JoinPoint joinPoint) { if (!logger.isDebugEnabled()) return; StringBuffer sb = new StringBuffer(); sb.append(getMethodNm(jo..
solution1, tx:annotation-driven 에 mode="aspectj" 추가solution2, REQUIRES_NEW 사용하는 메소드를 다른 클래스로 이동solution3, solution4, PlatformTransactionManager 사용 참고: http://www.javablog.fr/spring-transaction-visibility-proxy-propagation-required-and-requires_new.html
http://www.springsource.org/download/community
----------------------------------------------------------------------------------------------------------------- package com.my; import org.apache.commons.logging.Log;import org.apache.commons.logging.LogFactory;import org.aspectj.lang.JoinPoint;import org.aspectj.lang.Signature; public class LogAspect { private final Log logger = LogFactory.getLog(getClass()); public void before(JoinPoint join..