분류 전체보기98 SyntaxHighlighter 에서 linenumber 표시하지 않기 Syntax Highlighter를 사용하다가 linenumber를 표시하지 않아야 할 경우가 생겼다. 방법은 gutter: false 속성을 넣어주면 된다. tistory에서는 아래와 같이 사용하면 된다. 2016. 1. 20. Oracle 30분간격 시간 가져오는 쿼리 오라클을 이용하여 30분 간격으로 시간을 가져오는것이 필요하게 되었다. 오라클의 connect by 를 이용하여 해결한 쿼리는 아래와 같다. select to_char(to_date('0100', 'hhmi') + (((level*0.5)-0.5)/24), 'hh:mi') time_str from (select '0100' s, '1230' e from dual) connect by to_date('0100', 'hhmi') + (((level*0.5)-0.5)/24) 2016. 1. 20. spring을 이용하여 File download 하기 spring project에서 file download를 구현할 필요가 생겼음 아래와 같은 방법으로 처리하였음 web-servlet.xml 0 file download link 첨부파일 (${fileList.size()}개) [모두받기] ${file.fileNm} DownloadController.java@RequestMapping("/down.do") public ModelAndView down(ModelMap model, HttpServletRequest request, TBBase vo) throws Exception{ ModelAndView mav = new ModelAndView("downloadView"); Map param = vo.createMap(); param.put("queryKey".. 2016. 1. 20. java.lang.ClassCastException: java.math.BigDecimal cannot be cast to java.lang.Integer oracle의 column type이 number 형인경우 ClassCastException 이 발생할 수 있는데 이럴경우 String.valueOf() 를 사용하면 해결된다. int currLv = Integer.parseInt(String.valueOf(m.get("currLv")+"")); int nextLv = Integer.parseInt(String.valueOf(m.get("nextLv")+"")); 2016. 1. 20. 이전 1 ··· 19 20 21 22 23 24 25 다음