getProjNoFromSession 이라는 static method가 있습니다. 이 메서드를 다른 클래스에서 사용 하려면, 해당 클래스 명을 다 써줘야 하는 불편함이 있습니다. 하지만 import static 을 사용하여 해당 메서드를 import 시켜둔다면, 해당 클래스에서는 언제든 이미 가지고 있는 메서드 처럼 사용 할 수 있습니다. 코드의 ReadAbility 에도 좋고 Code Assist 도 되니 알아둔다면 유용하게 사용할 수 있습니다! import static best.gaia.utils.SessionUtil.*;Copy 위와 같이 import 해둔다면 해당 클래스의 모든 메서드를 import 합니다 !
Programming 159
MyBatis update 조건에 따른 동적 쿼리 작성하기 및 Unable to convert type java.lang.Integer of 12 to type of java.lang.CharSequence 오류 해결 방법 UPDATE KANBAN_CARD UPDATE KANBAN_CARD SET KB_CARD_PRIV_NO = #{kb_card_priv_no,jdbcType=NUMERIC} ,MEM_NO = #{mem_no,jdbcType=NUMERIC} ,KB_COL_NO = #{kb_col_no,jdbcType=NUMERIC} ,ISSUE_SID = #{issue_sid,jdbcType=NUMERIC} ,KB_CARD_CONT = #{kb_card_cont,jdbcType=VARCHAR} ,KB_C..
위에 보이는 css 와 js 들이 필요합니다. 우클릭 할 영역을 만들어 줍니다. right click meCopy 영역에 초기 설정 코드를 넣어줍니다. $(function(){ $.contextMenu({ selector: '.context-menu-one', items: { // name: { name: "Text", type: 'text', value: "Hello World", events: { keyup: function(e) { // add some fancy key handling here? window.console && console.log('key: '+ e.keyCode); } } }, sep1: "---------", // yesno: { n..
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..
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 ..