일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
- copy-dependencies
- import
- port
- ssh
- context
- maVen
- resource
- 공통표준용어
- 단축키
- VirtualBox
- xargs
- Eclipse
- GIT
- IntelliJ
- profile
- web.xml
- 네트워크
- netsh
- lsof
- Mac
- Quartz
- find
- Windows
- JavaScript
- bash
- Windows 10
- grep
- tomcat
- DB 도메인
- Source
- Today
- Total
목록전체 글 (1659)
develog
Java------------------------------------- public static void exceptionTest() { System.out.println("1"); try { System.out.println("2"); throwException(); // 예외발생! System.out.println("3"); } catch (Exception e) { System.out.println("4"); } finally { System.out.println("5"); } System.out.println("6");} 결과-------------------------------------12456
출처: http://stackoverflow.com/questions/6582034/ibatis-mybatis-select-dynamically-without-need-to-create-any-pojo-mapper select * from userselect * from user where id=#{value}select name from user // returns a list of mapsList test = sqlSession.selectList("test1"); // returns a single mapObject map = sqlSession.selectOne("test2", 0); // returns a list of stringsList names = sqlSession.selectList(..
selectOne1 row 리턴 selectListmulti row 리턴 selectMapit is designed to convert a list of results into a Map based on one of the properties in the resulting objects.
Java----------------------------------------------------------------public void testProc(SqlSession session) throws SQLException { HashMap param = new HashMap(); param.put("param1", "aa"); param.put("param2", "cc"); param.put("resultCd", ""); param.put("resultMsg", ""); session.selectOne("UserStatOld.testProc", param); System.out.println("resultCd : " + param.get("resultCd")); System.out.println..
Java----------------------------------------------------------------public void testProc(SqlSession session) throws SQLException { ProcVo vo = new ProcVo(); vo.setParam1("11"); vo.setParam2("bb"); session.update("UserStatOld.testProc", vo); System.out.println("resultCd : " + vo.getResultCd()); System.out.println("resultMsg : " + vo.getResultMsg());} Vo--------------------------------------------..
date && hwclock