1. root logger / parent logger- root logger에 정의된 appender 설정이 하위 logger에도 적용된다.- 즉 하위 logger에 또다른 appender가 있을 경우 2번의 로그가 찍힐 수 있다.- 위와 같은 상황을 막으려면 어느 한쪽에는 additivity을 false로 설정한다.- root logger는 필수 element는 아니지만, level 정도는 설정해두는 것이 좋다. 2. parent/child- logger는 name-base로 부모/자식 관계가 성립된다.- com.log 라는 logger가 있고, com.log.test 라는 logger를 정의할 경우- com.log.test는 com.log의 하위 logger가 된다.- http://seosh81.i..
뭐가뭔지 개발자인 나도 잘 모르겠다..찾은 김에 곧장 깃헙에 올릴라고 했는데 깃헙도 잘 모르겠고 ㅋㅋ프로젝트도 이클립스용이고.. 인텔리제이도 포팅하고 테스트 좀 한 담에 깃헙에 올려야겠다. 중요한.. source code만 깃헙에 업로드하였습니다.이것으로 이 소스를 다시 볼 일은 없을듯..(다행) 자세한 내용은 깃헙을 보시면 됩니다. https://github.com/copcop/pineapplereadme에도 써놨지만, 모든 소스를 직접 작성한 것은 아닙니다. (내가 코딩한 것도 기억이...)원작자가 나오면 지워야지... 아무튼 누군가에게는 도움이 되길...
thymeleaf 가이드 문서의 Standard URL Syntax을 살펴보면... 아래 {id}와 같은 구문을 사용할 수 있다고 나와 있다. 하지만. 실제로 사용해보면.. 안되는 문제가 있는데.. thymeleaf github에서는 이런 명확한 방법이 있는데 왜 안쓰냐.. 대충 이런 이야기인 것 같고(말이 많아서 보다 말았음..) sof에서 아래 2가지 발견http://stackoverflow.com/questions/14938344/thymeleaf-construct-url-with-variablehttp://stackoverflow.com/questions/22059314/thymeleaf-spring-mvc-how-do-you-nest-variables-expressions-in-a-link-ex..
http://stackoverflow.com/questions/4077071/how-to-convert-list-of-object-to-xml-doc-using-xstream class Article {private int id; ... private List jounalists; ...} xstream.alias("article", Article.class);xstream.addImplicitCollection(Article.class, "journalists", Journalist.class);
http://stove99.tistory.com/106 대충 요렇게 쓰면 됨 try { Document document = DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(url); XPath xpath = XPathFactory.newInstance().newXPath(); NodeList elements = (NodeList) xpath.evaluate("//rootElement/targetElement", document, XPathConstants.NODESET); if (elements == null) { return StringUtils.EMPTY; } else { return elements.item(0).getTextCont..