서블릿에서 한글 쿠키 사용하기. An invalid character [32] was present in the Cookie value 해결하기.

Cookie에 간단하게 String 데이터를 넣는데 에러가 발생했습니다. SEVERE: Servlet.service() for servlet [springDispatcherServlet] in context with path [/gaia] threw exception [Request processing failed; nested exception is java.lang.IllegalArgumentException: An invalid character [32] was present in the Cookie value] with root cause java.lang.IllegalArgumentException: An invalid character [32] was present in the Cookie v..

Programming/JPA ⁄ Spring 2021.06.04
이제 alert 대신 toastr 사용하자 ! Toastr 사용 하기

https://github.com/CodeSeven/toastr toastr is a Javascript library for non-blocking notifications. jQuery is required. The goal is to create a simple core library that can be customized and extended. toastr 이란 ? toastr 은 non-blocking 알람을 띄우는 Javasript 라이브러리 입니다. jQuery 가 필요합니다 여러가지 다양한 옵션을 줄 수 있지만 간단하게 사용 할 수 있도록 쉽게 설명을 해 드리겠습니다. 테스트 먼저 위의 기본적인 html 코드를 실행해보면 정말 기본적으로, '테스트' 버튼을 눌렀을때 hi ..

Programming/javascrlpt 2021.06.04
org.apache.ibatis.reflection.ReflectionException:There is no getter for property named 해결하기

org.apache.ibatis.reflection.ReflectionException: There is no getter for property named ' kb_card_priv_no' in 'class best.gaia.vo.KanbanCardVO' at org.apache.ibatis.reflection.Reflector.getGetInvoker(Reflector.java:374) at org.apache.ibatis.reflection.MetaClass.getGetInvoker(MetaClass.java:164) at org.apache.ibatis.reflection.wrapper.BeanWrapper.getBeanProperty(BeanWrapper.java:162) at org.apach..

Programming/JPA ⁄ Spring 2021.06.03
특정 문자 변경하는 Filter 만들기

제가 지금 준비중인 Project에서는 Markdown 문법을 지원하고 있습니다. 그런데 xss 방어용으로 등록한 lucy-xss-servlet-filter가 > 를 일괄적으로 > 로 변경해버리는 바람에 markdown 에서 많이 쓰는 문자중 하나인 '>'를 사용하지 못하는 상황이 되어 버렸습니다. lucy-xss-servlet-filter 에서 특정 문자를 제외하는 방법을 엄청 찾아봤는데 그건 없어서.. Custom Filter를 하나 더 추가 해서 Lucy 필터 다음에 위치하도록 하고, >를 모두 >로 변경하도록 해 보았습니다. CustomWrapper를 먼저 만듭니다. package best.gaia.utils.filter; import javax.servlet.http.HttpServletRequ..

Programming/JPA ⁄ Spring 2021.06.02
Eclipse java 코드 변경시 톰캣 자동 재시작 방지

서버를 켜둔채로 Code를 작성하다 보면 자꾸 서버가 재시작 되어서 불편합니다. 그렇다고 서버를 끄고 작업하자니, 가벼운 jsp 파일 변경도 확인하려면 서버를 새로 켜줘야 하는 불편함이 있습니다. 그래서 서버는 계속 켜 두고, 필요할때만 서버를 재 시작 하기 위해 자동 재시작을 막아두려고 합니다. 이클립스의 Servers 탭에서 해당 서버를 더블클릭 해줍니다. 그러면 서버 설정 창이 나오는데요, Modules auto reload by default 가 체크가 되어있는데, 체크를 없애야 합니다. 그 후에 하단에 Modules를 클릭합니다. 수정할 Project 를 선택 하고 Edit 버튼을 누릅니다. Auto reloading enabled 를 비활성화 시킨 후 OK 를 누릅니다. 수정을 했으면 윈도우면..

Programming/JPA ⁄ Spring 2021.06.02