http://stackoverflow.com/questions/27566267/maven-how-to-fill-a-variable-in-web-xml-file I want it url ${targetUrl} local true local http://local.target.url solution (in pom.xml) org.apache.maven.plugins maven-war-plugin 2.6 true
http://stackoverflow.com/questions/3585034/how-to-map-a-composite-key-with-hibernate @ID 방식과 @Embeddable 방식이 있는데 후자의 방식으로 코딩했다.(이유는 @Id 방식으로 했을 때 에러가 나서?)TagBusy의 PK 정보를 TagBusyId가 가지고 있다(3가지 복합키) @Entity @Table(name = "tag_busy") public class TagBusy { @EmbeddedId private TagBusyId tagBusyId; //PK @Column(name = "reg_date", nullable = true, insertable = false, updatable = false) private Date re..
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..