본문 바로가기
728x90
반응형
SMALL

자바19

Effective Java 2 - 규칙24 - "무점검 경고(unchecked warning)를 제거하라" - 무점검 경고는 중요하다. 무시하지 마라. - 모든 무점검 경고는 프로그램 실행 도중에 ClassCastException이 발생할 가능성을 나타낸다. - 최선을 다해 그런 메시지를 제거하라. - 제거할 수 없는 경우 형 안정성을 보장한다는 사실을 입증할 수 있다면, @SuppressWarning("unchecked") annotation을 사용해 해당 경고를 억제하라. - 어노테이션 적용 범위는 최소화 하라. - 경고 메시지를 억제한 이유를 주석에 써 놓아야 한다. // @SuppressWarnings의 적용 범위를 줄이기 위해 지역 변수 사용 public T[] toArray(T[] a) { if ( a.length size ) { a[size] = null; } return a; } 2016. 8. 6.
centos java 설치 후 default java 변경 JRE 설치========================================================================================1 jre downloadhttp://java.com/ko/download/manual.jspjre-6u24-linux-i586-rpm.bin 2 chmod 755 jre-6u24-linux-i586-rpm.bin 3 ./jre-6u24-linux-i586-rpm.bin 4 rpm -Uvh jre-6u24-linux-i586-rpm========================================================================================JAVA version 확인java -versionve.. 2013. 12. 30.
톰캣 구동 시 에러 WARNING: error instantiating 'org.apache.juli.ClassLoaderLogManager' referenced by java.util.logging.manager, class not foundjava.lang.ClassNotFoundException: org.apache.juli.ClassLoaderLogManager not found WARNING: error instantiating '1catalina.org.apache.juli.FileHandler,' referenced by handlers, class not found java.lang.ClassNotFoundException: 1catalina.org.apache.juli.FileHandler, Exceptio.. 2013. 12. 24.
특정 영역 excel export 원하는 특정 영역 (ex. ) 만 excel 로 export 하고 싶을 때action 에서 해당 내용을 다시 select 하여 결과 jsp 에서 excel 의 내용을 다시 그려주곤 했다.하지만 아래와 같은 방법으로도 가능 하다. 1. IEexcel 로 그려주고 싶은 부분을 로 묶는다. 아래 소스에서는 target_tbtarget table 의 html 을 action 으로 submit();excel jsp 에서는 해당 html tag 를 받아서 그려주기만 하면 된다.- jsp & javascript.. .... .. ...document.excelForm.action = getContextRoot() + 'project/toExcel.do';$('#excelSource').val($('#test_tb').. 2013. 12. 21.
728x90
반응형
LIST