'JAVA'에 해당되는 글 5건
- 2013.09.13 :: 디자인 패턴 참조 사이트
- 2013.02.18 :: apache common XMLConfigurator 에서 CDATA 사용
- 2013.01.30 :: quartz.scheduler 설정 파일 path 설정
- 2013.01.16 :: map to json string
- 2012.07.12 :: JSON string to Map
http://www.javajigi.net/display/SWD/ch01_designpatternworld
'JAVA' 카테고리의 다른 글
apache common XMLConfigurator 에서 CDATA 사용 (0) | 2013.02.18 |
---|---|
quartz.scheduler 설정 파일 path 설정 (0) | 2013.01.30 |
map to json string (0) | 2013.01.16 |
JSON string to Map (0) | 2012.07.12 |
아래와 같이 CDATA 를 사용한 값을 읽을때,
<property>
<name>sql</name>
<value><![CDATA[select a, b from c]]></value>
</property>
default delimiter이 컴마(,)이기 때문에 아래처럼 리스트로 읽혀 진다.
select a
b from c
아래의 코드는 스트링을 split 하지 않도록 하는 코드이다.
AbstractConfiguration.setDefaultListDelimiter((char) 0);
'JAVA' 카테고리의 다른 글
디자인 패턴 참조 사이트 (0) | 2013.09.13 |
---|---|
quartz.scheduler 설정 파일 path 설정 (0) | 2013.01.30 |
map to json string (0) | 2013.01.16 |
JSON string to Map (0) | 2012.07.12 |
quartz scheduler 는 기본으로 root classpath에 있는 quartz.properties를 참조하도록 되어 있고, 없을 경우 org.quartz 에 있는 quartz.properties를 참조한다.
이것을 변경하려면 이름이 org.quartz.properties인 system property를 설정해야 한다.
System.setProperty("org.quartz.properties", "com/mycompany/conf/quartz.properties");
'JAVA' 카테고리의 다른 글
디자인 패턴 참조 사이트 (0) | 2013.09.13 |
---|---|
apache common XMLConfigurator 에서 CDATA 사용 (0) | 2013.02.18 |
map to json string (0) | 2013.01.16 |
JSON string to Map (0) | 2012.07.12 |
ObjectMapper mapper = new ObjectMapper();
String jsonString = mapper.writeValueAsString(map);
'JAVA' 카테고리의 다른 글
디자인 패턴 참조 사이트 (0) | 2013.09.13 |
---|---|
apache common XMLConfigurator 에서 CDATA 사용 (0) | 2013.02.18 |
quartz.scheduler 설정 파일 path 설정 (0) | 2013.01.30 |
JSON string to Map (0) | 2012.07.12 |
ObjectMapper을 사용하여 json string을 Map으로 변환한다.
ObjectMapper mapper = new ObjectMapper();
String jsonStr = "{\"name\":\"kim\"}";
Map map = mapper.readValue(jsonStr, new TypeReference<Map<String, Object>>(){});
'JAVA' 카테고리의 다른 글
디자인 패턴 참조 사이트 (0) | 2013.09.13 |
---|---|
apache common XMLConfigurator 에서 CDATA 사용 (0) | 2013.02.18 |
quartz.scheduler 설정 파일 path 설정 (0) | 2013.01.30 |
map to json string (0) | 2013.01.16 |