본문 바로가기
반응형

FullStack/21. Java51

데이터베이스 쿼리 로그 log4jdbc iBatis 등의 쿼리 로그를 볼때 SQL 문과 Parameter 부분이 따로 표시되어서 실제 쿼리를 테스트 하려면 일일이 맵핑등의 수작업이 필요합니다. 해당 과정을 처리한후 로그로 뽑아주는 Lib가 있어서 소개합니다. 적용시 크게 다른점은 없으며, logback or log4j 의 Log 프로퍼티의 변경 및 DB Driver, URL 변경만 작업해주면 됩니다. # 해당 라이브러리가 한번 감싸서 다시 호출하는 방식으로 실제 해당 라이브러리는 개발시에만 사용!! 하세요. 아무래도 재호출 개념이 있다보니 약간이나마 시간적 소모가 걸리는 부분이 존재 할 수 도 있습니다. 관련 사이트 : http://code.google.com/p/log4jdbc/ log4jdbc3 의 경우 JDK1.4 and JDK1.5 l.. 2012. 10. 11.
[WARN] Using platform encoding (MS949 actually) to copy filtered resources, i.e. build is platform dependent! Maven 으로 컴파일 도중 다음의 오류 발생 [WARN] Using platform encoding (MS949 actually) to copy filtered resources, i.e. build is platform dependent! 아마 인코딩이 MS949인데 소스가 UTF-8이라서 그런가보다. pom.xml 파일에 다음의 내용을 기술 3.0.5.RELEASE UTF-8 UTF-8 2012. 5. 30.
Pdf 한글 출력 Springframework에서 AbstractPdfView를 상속받아서 한글을 출력했더니 깨졌다. 블로그를 검색하고 해도 안되더니 5버전때 약간 바뀌었군. 한글 테스트를 해볼겸 해서 나의 윈도우에 있는 Font를 모두 출력해보았다. BaseFont.IDENTITY_H 해당 encoding로 해야함. int i = FontFactory.registerDirectory("C:\\Windows\\Fonts\\");System.out.println("Result = " + i);Set set= FontFactory.getRegisteredFonts();Iterator it = set.iterator();document.setPageSize(PageSize.A4);Font font;String fontname=.. 2012. 5. 18.
warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds Ant로 빌드시 다음의 경고가 나타났다.warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds Buildfile: D:\Dev_home\workspace\springapp\build.xmlbuild: [javac] D:\Dev_home\workspace\springapp\build.xml:44: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable buildsBUILD SUCCESSFULTotal time: 262 .. 2012. 3. 30.
반응형