반응형

분류 전체보기 82

spring java 하나의 컨트롤러 RequestMapping url 여러개 사용 방법

@RequestMapping(value={"url1.do" , "url2.do"}) //value={"","","",""} 이런식으로 여러개를 쓸수있다. public String main(HttpServletRequest request) throws Exception { //url 별로 다른처리가 필요할 경우 UrlPathHelper urls = new UrlPathHelper(); String url = urls.getOriginatingServletPath(request); String returnUrl = ""; if("url1.do".equals(url)){ returnUrl = "리턴경로"; }else{ returnUrl = "리턴경로"; } return returnUrl; }

ckeditor5 ck에디터5 javascript java 자바스크립트 자바 이미지 업로드 사용 방법

1. javascript ClassicEditor .create( document.querySelector( '#editor1' ), { toolbar: { items: [ 'heading', '|', 'bold', 'italic', 'link', 'bulletedList', 'numberedList', '|', 'indent', 'outdent', '|', 'imageUpload', 'blockQuote', 'insertTable', 'mediaEmbed', 'undo', 'redo', 'exportPdf', 'fontBackgroundColor', 'fontColor', 'fontSize', 'fontFamily', 'highlight', 'horizontalLine', 'underline', ] }..

전자정부 프레임워크 전정프 spring 리스트 최대 개수 늘리기

nested exception is java.lang.IndexOutOfBoundsException:Index: 256, Size: 256 오류 메세지 전자정부 프레임워크 공통 컴포넌트를 생성하면 자동으로 생기는 EgovBindingInitializer.java 파일에 binder.setAutoGrowNestedPaths(true); binder.setAutoGrowCollectionLimit(100000); 를 추가하면 된다. (리스트 최대 개수) public void initBinder(WebDataBinder binder, WebRequest request) { binder.setAutoGrowNestedPaths(true); //추가 binder.setAutoGrowCollectionLimit(1..

체크박스 checkbox 전체선택 해제 스크립트 javascript

체크박스 하나라도 해제 시 전체 체크박스 해제 스크립트입니다. $(document).ready(function(){ $("input[type=checkbox]").on("click",function(){ //체크박스가 클릭될 때 if($(this).attr("id") == "chkAll"){ //전체 체크인 경우 if($(this).is(":checked")){ //전체 체크가 체크되었을 경우 $("input[type=checkbox]").each(function(){ //체크박스 전체 검사 if($(this).attr("id") == "chkAll"){ return true; //전체 체크 일 경우 continue } $(this).prop("checked",true); //전체 체크가 아닐 경우 체크..

반응형