| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- Eclipse
- maVen
- IntelliJ
- JavaScript
- lsof
- bash
- 줄바꿈 문자
- find
- vscode
- profile
- tomcat
- web.xml
- xargs
- netsh
- Source
- 네트워크
- plugin
- resource
- import
- 단축키
- Quartz
- Windows 10
- context
- port
- Windows
- GIT
- ssh
- VirtualBox
- Mac
- grep
- Today
- Total
목록Dev/Spring (18)
develog
TestMainProperties.javaimport my.PropClient;import org.springframework.context.ApplicationContext;import org.springframework.context.support.ClassPathXmlApplicationContext; public class TestMainProperties { public static void main(String[] args) throws Exception {System.out.println("START");System.out.println("------------------------------------------------"); ApplicationContext context = new C..
TestMainProperties.javaimport java.util.Properties;import org.springframework.context.ApplicationContext;import org.springframework.context.support.FileSystemXmlApplicationContext; public class TestMainProperties {public static void main(String[] args) throws Exception {System.out.println("START");System.out.println("------------------------------------------------"); TestMainProperties main = n..
http://www.tutorialspoint.com/spring/spring_bean_definition.htm xmlns="http://www.springframework.org/schema/beans"xmlns:context="http://www.springframework.org/schema/context"xmlns:aop="http://www.springframework.org/schema/aop"xmlns:jdbc="http://www.springframework.org/schema/cache"xmlns:jdbc="http://www.springframework.org/schema/jdbc"xmlns:jee="http://www.springframework.org/schema/jee"xmlns..
web.xml 에 listener 추가 org.springframework.web.context.request.RequestContextListener getRequest()public static HttpServletRequest getRequest() { ServletRequestAttributes sra = (ServletRequestAttributes) RequestContextHolder.currentRequestAttributes(); HttpServletRequest request = sra.getRequest(); return request;}
import java.util.List; import org.aspectj.lang.JoinPoint;import org.aspectj.lang.Signature; public class LogAspect { public void before(JoinPoint joinPoint) {StringBuffer sb = new StringBuffer();sb.append(getFullName(joinPoint));sb.append(" (before)");sb.append(getArgs(joinPoint));MyLogger.debug(sb.toString());}public void afterReturning(JoinPoint joinPoint, Object ret) { StringBuffer sb = new S..