Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- web.xml
- JavaScript
- VirtualBox
- resource
- context
- IntelliJ
- Windows
- Quartz
- tomcat
- Mac
- maVen
- profile
- bash
- find
- netsh
- import
- 네트워크
- Eclipse
- port
- grep
- 단축키
- plugin
- ssh
- xargs
- Windows 10
- GIT
- 줄바꿈 문자
- lsof
- vscode
- Source
Archives
- Today
- Total
develog
ApplicationContext 가져오는 방법 본문
public void getApplicationContext1() {
ApplicationContext context = new ClassPathXmlApplicationContext("classpath:spring-config.xml");
System.out.println(">> getApplicationContext1() : " + context);
}
public void getApplicationContext2() {
ApplicationContext context = new FileSystemXmlApplicationContext("classpath:spring-config.xml");
System.out.println(">> getApplicationContext2() : " + context);
}
public void getApplicationContext2() {
ApplicationContext context = new FileSystemXmlApplicationContext("src/spring-config.xml");
System.out.println(">> getApplicationContext2() : " + context);
}
'Dev > Java' 카테고리의 다른 글
Quartz cron expression test (0) | 2012.12.04 |
---|---|
Quartz Test (0) | 2012.12.04 |
DTD-style vs Xml Schem-style in Spring 2.5 (0) | 2012.12.04 |
ant 에서 ssh 사용 (0) | 2012.12.01 |
SQL Developer 에러 조치 (0) | 2012.11.27 |
Comments