본문 바로가기

Java/└ Mybatis14

Mybatis) emp 패키지 시작 - 사원 정보 전체 조회 안녕하세요, 코린이의 코딩 학습기 채니 입니다. 개인 포스팅용으로 내용에 오류 및 잘못된 정보가 있을 수 있습니다. ※ 아래 포스팅 참고 https://chanychu.tistory.com/362 Oracle) synonym 동의어 객체 생성 안녕하세요, 코린이의 코딩 학습기 채니 입니다. 개인 포스팅용으로 내용에 오류 및 잘못된 정보가 있을 수 있습니다. 계정 권한 부여 (SELECT) web2에게 kh의 employee, department, job 테이블 조회 권한 chanychu.tistory.com emp 패키지 시작 새로운 패키지가 추가되었고, DispatcherServlet에서는 Student만을 받기 때문에 수정 작업 필요 DispatcherServlet public DispatcherSe.. 2022. 8. 9.
Mybatis) 여러 건 조회하기 (JSTL 이용하여 문자열을 Date형식으로 파싱하기) 안녕하세요, 코린이의 코딩 학습기 채니 입니다. 개인 포스팅용으로 내용에 오류 및 잘못된 정보가 있을 수 있습니다. 여러 건 조회하기 DTO url-command.properties /student/selectList.do = com.ce.app.student.controller.SelectListController Controller SelectListController @Log4j @RequiredArgsConstructor public class SelectListController extends AbstractController { private final StudentService studentService; @Override public String doGet(HttpServletRequest.. 2022. 8. 8.
Mybatis) resultMap 사용하기 안녕하세요, 코린이의 코딩 학습기 채니 입니다. 개인 포스팅용으로 내용에 오류 및 잘못된 정보가 있을 수 있습니다. select * from student where deleted_at is null and no = #{no} resultMap으로 변환 select * from student where deleted_at is null and no = #{no} resultType이 Map인 경우 url-command.properties /student/studentMap.do = com.ce.app.student.controller.StudentMapController Controller StudentMapController @Log4j @RequiredArgsConstructor public clas.. 2022. 8. 8.
Mybatis) 학생 정보 변경 및 삭제하기 안녕하세요, 코린이의 코딩 학습기 채니 입니다. 개인 포스팅용으로 내용에 오류 및 잘못된 정보가 있을 수 있습니다. 학생 정보 변경하기 url-command.properties /student/updateStudent.do = com.ce.app.student.controller.StudentUpdateController Controller StudentUpdateController public class StudentUpdateController extends AbstractController { static final Logger log = Logger.getLogger(StudentUpdateController.class); private StudentService studentService; pu.. 2022. 8. 8.
Mybatis) 총 학생 수 조회, 학생 정보 한 건 조회 안녕하세요, 코린이의 코딩 학습기 채니 입니다. 개인 포스팅용으로 내용에 오류 및 잘못된 정보가 있을 수 있습니다. 총 학생 수 조회 url-command.properties /student/selectOne.do = com.ce.app.student.controller.SelectOneController Controller SelectOneController public class SelectOneController extends AbstractController { static final Logger log = Logger.getLogger(SelectOneController.class); private StudentService studentService; public SelectOneControl.. 2022. 8. 5.
Mybatis) 학생 정보 등록 - MAP 안녕하세요, 코린이의 코딩 학습기 채니 입니다. 개인 포스팅용으로 내용에 오류 및 잘못된 정보가 있을 수 있습니다. 학생 정보 등록 - MAP studentEnroll.jsp 학생등록(MAP) 학생이름 전화번호 Controller StudentMapEnrollController public class StudentMapEnrollController extends AbstractController { static final Logger log = Logger.getLogger(StudentMapEnrollController.class); private StudentService studentService; public StudentMapEnrollController(StudentService student.. 2022. 8. 5.