분류 전체보기
-
자바(JAVA)에서 아이피(IP) 주소 얻기기술과 산업/언어 및 프레임워크 2015. 3. 20. 15:42
자바(JAVA)에서 아이피(IP) 주소 얻기 윈도우만이 대상이라면.... public static String getHostAddress() throws UnknownHostException { InetAddress inetAddress = InetAddress.getLocalHost(); String hostName = inetAddress.getHostName(); String hostAddress = inetAddress.getHostAddress(); if(log.isInfoEnabled()) { log.info("==============Host Information==============="); log.info("hostName: " + hostName); log.info("hostAddre..
-
톰켓 Permgen 메모리 설정하기기술과 산업/언어 및 프레임워크 2015. 2. 11. 10:15
Thanks Mkyong!! 1. SolutionBy default, Tomcat is assigned a very little PermGen memory for the running process. To fix it, increase the PermGen memory settings by using the following Java VM options.-XX:PermSize - Set initial PermGen Size. -XX:MaxPermSize - Set the maximum PermGen Size. 2. WindowsTomcat is managed by this script file catalina.bat, dive inside the script, you will find out that c..
-
[HTML] 화면 중앙 위치 시키기기술과 산업/언어 및 프레임워크 2015. 2. 4. 18:12
1.#center { position:absolute; top:40%; left:40%; width:466px; height:400px; overflow:hidden; margin-top:-150px; margin-left:-100px;} 2..container { width:auto; height:auto; text-align:center; vertical-align:middle;}.block { margin: 150px;} 되긴하는데 찜찜하네...역시 자기가 잘 못하는 영역은 넘보는게 아닌듯.
-
springframework + commons-configuration + jasypt 사용 예기술과 산업/언어 및 프레임워크 2015. 1. 31. 17:38
springframework와 연동하여 사용하는 예 프로퍼티 관련하여서는 org.springframework.beans.factory.config.PropertyPlaceholderConfigurer 클래스를 사용한다. (설명 및 사용 예는 생략) jasypt를 이용하여 암호화된 내용을 처리할 때는 EncryptablePropertyPlaceholderConfigurer 클래스를 사용한다.(org.jasypt.spring3.properties.EncryptablePropertyPlaceholderConfigurer or org.jasypt.spring31.properties.EncryptablePropertyPlaceholderConfigurer) - commons-configuration maven d..
-
-
[Jackson] 관계를 갖는 객체 변환 에러기술과 산업/언어 및 프레임워크 2015. 1. 25. 16:04
부모 자식 관계 같은 관계를 갖는 객체는 아래와 같은 어노테이션을 붙여주어야 한다. 부모 @JsonManagedReference 자식 @JsonBackReference 실제로 ORM을 사용하다 보면 테이블간의 관계를 표현하는 객체들을 바로 JSON으로 변경할때 조인 컬럼들이 변환에러가 남. 참고http://jackson.codehaus.org/1.7.9/javadoc/org/codehaus/jackson/annotate/JsonManagedReference.html http://jackson.codehaus.org/1.9.2/javadoc/org/codehaus/jackson/annotate/JsonBackReference.html