분류 전체보기
-
UTF-8 기반 XML 처리 에러개발 2015. 4. 12. 18:37
XML 처리하는데 에러가 발생!! XML 구분을 인식하지 못하는 문제가 있음을 확인하고 종단간 메시지를 모두 확인한 결과 인코딩 문제임을 확인! 톰켓의 bin폴더에 catalina.bat 파일을 열어보시면 아래와 같이 부분이 있습니다. rem Execute Java with the applicable propertiesif not "%JPDA%" == "" goto doJpdaif not "%SECURITY_POLICY_FILE%" == "" goto doSecurity%_EXECJAVA% %JAVA_OPTS% %CATALINA_OPTS% %DEBUG_OPTS% -Djava.endorsed.dirs="%JAVA_ENDORSED_DIRS%" -classpath "%CLASSPATH%" -Dcatalina...
-
[Java] Android apk 파일 정보개발 2015. 4. 12. 18:29
서버에서 apk 정보를 제공해야 할 때가 있다. (google play를 통하여 업데이트 하지 않을 경우) jdk 1.6 기반 일때 https://github.com/joakime/android-apk-parser 참고AndroidApk apk = new AndroidApk(apkfile); //log.debug("AndroidApk - version name: " + apk.getAppVersion()); log.debug("AndroidApk - version code: " + apk.getAppVersionCode()); log.debug("AndroidApk - min sdk version: " + apk.getMinSdkVersion()); //log.debug("AndroidApk - max ..
-
자바(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..
-