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..
http://seongilman.tistory.com/27 #.properties -> .xml로 변경하는 작업을 진행하였다.#기존 는 삭제하고을 추가해서 value="#{prop['jdbc.driverClassName']}"와 같이 작성하였다. #controller에서는 다음과 같이 사용 @Value("#{prop['test']}") private String value;@Autowired private Properties prop; # view(jsp)에서도 taglib를 통해서 사용가능한데현재 프로젝트에서는 thymeleaf로 인해 사용불가능한 상태이다(-ㅅ-)... 사용가능하도록 설정을 변경하는 방법을 찾는 등 대안이 필요레퍼런스는 상단의 사이트로 가볼 것 #xml 설정은 다음과 같다. 설명 co..