본문 바로가기
개발자로 가는 길(국비지원과정)/4.Spring+ Ajax

[복습 Day22] 인텔리제이, 오라클 연동

by 레아Leah 2022. 2. 3.
반응형

GET  read --> view, model, controller 

POST  insert

DELETE delete 

PUT update 

==> RESTful 

 

was, ds는 spring boot에서 알아서 해줌

 

 

**메뉴의 집중화 

- view에 공통된 화면이 있을 경우 그 부분을 따로 분리해서 작업 

 

1)오라클 서버구동

2)웹 디펜던시 추가하는 프로젝트 작성 start.spring.io 

3)mybatis-stater 디펜던시를 수동으로 붙임 

compile("org.mybatis.spring.boot:mybatis-spring-boot-starter:2.2.2")

http://mybatis.org/spring-boot-starter/mybatis-spring-boot-autoconfigure/

 

mybatis-spring-boot-autoconfigure – Introduction

Introduction What is MyBatis-Spring-Boot-Starter? The MyBatis-Spring-Boot-Starter help you build quickly MyBatis applications on top of the Spring Boot. By using this module you will achieve: Build standalone applications Reduce the boilerplate to almost z

mybatis.org

 

4)vo : guestbook 생성

5)요청사항(request) 정리

-/guestbook/guestbookList : 목록 요청 

-/guestbook/guestbookWrite: 방명록 쓰기 화면 요청(get)

-/guestbook/guestbookWrite: 방명록에 쓴 내용을 저장하기 위한 요청(post)

-/guestbook/guestbookDelete: 글 삭제 요청(get)

 

 

반응형

'개발자로 가는 길(국비지원과정) > 4.Spring+ Ajax' 카테고리의 다른 글

BEAN  (0) 2022.02.08
[복습 Day23]  (0) 2022.02.07
[210806금] Board_Ajax  (0) 2021.08.06
[210805] 댓글 수정, 삭제  (0) 2021.08.05
@RequestBody와 @ResponseBody 차이  (0) 2021.08.04