💎 RowBounds - RowBounds row = new RowBounds(offset , limit); offset : 데이터를 가져오는 시작점에서 얼마나 떨어진 데이터인지를 적어주는것. limit : 한페이지에 몇개의 값을 가져오는지 적어주는것. public List selectManagementList(Pagination pagination) { int offset =(pagination.getCurrentPage() -1) * pagination.getLimit(); RowBounds rowBounds = new RowBounds(offset,pagination.getLimit()); return sqlSession.selectList("AdministratorMapper.selectManag..
mybatis
💎 Mybatis 동작 구조 💎 mybatis-config 설정 ◈ Mybatis 설정용 XML 파일 DTD( Document Type Definiton ) 추가 Window - Preferences - XML - XML Catalog - User Specified Entries 클릭 - Config Location : http://mybatis.org/dtd/mybatis-3-config.dtd Key type : Public ID Key : -//mybatis.org//DTD Config 3.0//EN - Mapper Location : http://mybatis.org/dtd/mybatis-3-mapper.dtd Key type : Public ID Key : -//mybatis.org//DTD M..
💎 Mybatis 란?? - 데이터의 입력, 조회, 수정, 삭제(CRUD)를 보다 편하게 하기 위해 xml로 구조화한 Mapper 설정 파일을 통해서 JDBC를 구현한 영속성 프레임워크 - 기존에 JDBC를 통해 구현했던 상당 부분의 코드와 파라미터 설정 및 결과 매핑을 xml 설정을 통해 쉽게 구현할 수 있게 해준다 📣 Mybatis API 사이트 http://www.mybatis.org/mybatis-3/ko 📣 Mybatis 흐름 - 이전에 JDBC Template을 통해 SQL을 실행하였다면 Mybatis는 해당 흐름을 전용 라이브러리를 통해 대체하여 동작한다고 생각하면 된다. 📣 JDBC, Spring, Mybatis 관련 모듈,라이브러리 추가 JDBC 드라이버 (ojdbc11) : https:..
💎 Console ★★ 템플릿 리터럴( template literal ) ★★ - js내에 '역따옴표(백틱)' 을 사용하면 ${} 표현식을 쓸수있고 결과는 문자열로 인식한다 장점 : 기존 문자열 내부에 표현식을 추가하려면, 문자열을 따옴표로 분리한후 + 연산자로 하나씩 연결해줘야했지만 템플릿리터럴 즉 백틱을 사용하면 편리하고 가독성이 좋게 작성할수있다. 💎 Jsp ${boardName} 썸네일 × 업로드 이미지 × × × × 등록 💎 JS // img 5개 const preview = document.getElementsByClassName("preview"); // file 5개 const inputImage = document.getElementsByClassName("inputImage"); // ..