본문 바로가기
반응형

Programming/SpringBoot22

[Spring Boot] REST API 설계 시 고려해야 할 사항 [Spring] REST API 방식 / RESTful 시스템 REST (Representational State Transfer) HTTP 기반으로 필요한 자원에 쉽게 접근할 수 있도록 도와주는 아키텍처이다. HTTP에 존재하는 모든 자원에 고유한 URI를 부여하여 자원을 정의하고, 자원에 대한 주소 prinha.tistory.com RESTful Web Services - Best practices ■ Consumer first 개발자 중심의 설계보다는 해당 API를 사용하는 사용자 중심으로 간단명료하고 직관적인 형태로 설계되어야함 ■ Make best use of HTTP HTTP Method, Request-Response Type, Header 값 등과 같이 HTTP의 장점을 최대한 살려 설계해.. 2020. 8. 27.
[Spring Boot] RESTful Service 강의 정리 (20) - JPA를 이용한 새 게시물 추가 POST HTTP Method [Spring Boot] RESTful Service 강의 정리 (19) - 게시물 조회를 위한 Post Entity와 User Entity의 관계 설정 [Spring Boot] RESTful Service 강의 정리 (18) - 게시물 관리를 위한 Post Entity 추가와 초기 데이터 생성 [Spring Boot] RESTful Service 강의 정리 (17) - JPA를 이용한 사용자 추가와 삭제 - POST/DELETE HTT.. prinha.tistory.com JPA를 이용한 새 게시물 추가 POST HTTP Method 1) PostRepository interface 생성 package com.example.restfulwebservice.user; import org.springfra.. 2020. 8. 27.
[Spring Boot] RESTful Service 강의 정리 (19) - 게시물 조회를 위한 Post Entity와 User Entity의 관계 설정 [Spring Boot] RESTful Service 강의 정리 (18) - 게시물 관리를 위한 Post Entity 추가와 초기 데이터 생성 [Spring Boot] RESTful Service 강의 정리 (17) - JPA를 이용한 사용자 추가와 삭제 - POST/DELETE HTTP Method [Spring Boot] RESTful Service 강의 정리 (16) - JPA를 이용한 개별 사용자 목록 조회 GET HTTP Me.. prinha.tistory.com Post Entity와 User Entity의 게시물 조회 UserJpaController method 작성 // Post Entity를 사용할 수 있는 게시물 조회 메소드 @GetMapping("/users/{id}/posts") p.. 2020. 8. 27.
[Spring Boot] RESTful Service 강의 정리 (18) - 게시물 관리를 위한 Post Entity 추가와 초기 데이터 생성 [Spring Boot] RESTful Service 강의 정리 (17) - JPA를 이용한 사용자 추가와 삭제 - POST/DELETE HTTP Method [Spring Boot] RESTful Service 강의 정리 (16) - JPA를 이용한 개별 사용자 목록 조회 GET HTTP Method [Spring Boot] RESTful Service 강의 정리 (15) - JPA Service 구현을 위한 Controller, Repository 생성 [.. prinha.tistory.com Creating Post Entity and Many to One Relationship with User Entity 사용자 관리 어플리케이션에 게시물 관련 기능 추가 User : Posts -> 1 : (0.. 2020. 8. 27.
[Spring Boot] RESTful Service 강의 정리 (17) - JPA를 이용한 사용자 추가와 삭제 - POST/DELETE HTTP Method [Spring Boot] RESTful Service 강의 정리 (16) - JPA를 이용한 개별 사용자 목록 조회 GET HTTP Method [Spring Boot] RESTful Service 강의 정리 (15) - JPA Service 구현을 위한 Controller, Repository 생성 [Spring Boot] RESTful Service 강의 정리 (14) - Spring Data JPA를 이용한 Entity 설정과 초기 데이터.. prinha.tistory.com 1. HTTP DELETE Method @DeleteMapping("/users/{id}") public void deleteUser(@PathVariable int id){ User user = service.deleteBy.. 2020. 8. 27.
[Spring Boot] RESTful Service 강의 정리 (16) - JPA를 이용한 개별 사용자 목록 조회 GET HTTP Method [Spring Boot] RESTful Service 강의 정리 (15) - JPA Service 구현을 위한 Controller, Repository 생성 [Spring Boot] RESTful Service 강의 정리 (14) - Spring Data JPA를 이용한 Entity 설정과 초기 데이터 생성 [Spring Boot] RESTful Service 강의 정리 (13) - JPA 사용을 위한 Dependency, h2 DataBase 추가와.. prinha.tistory.com primary key 값을 이용해서 검색 -> findAllById package com.example.restfulwebservice.user; import org.springframework.beans.factory.. 2020. 8. 27.
[Spring Boot] RESTful Service 강의 정리 (15) - JPA Service 구현을 위한 Controller, Repository 생성 [Spring Boot] RESTful Service 강의 정리 (14) - Spring Data JPA를 이용한 Entity 설정과 초기 데이터 생성 [Spring Boot] RESTful Service 강의 정리 (13) - JPA 사용을 위한 Dependency, h2 DataBase 추가와 설정 [Spring Boot] RESTful Service 강의 정리 (12) - JPA(Java Persistence API)와 ORM, Hibernate [Spring B.. prinha.tistory.com Updating GET methods on User Resource to use JPA Spring Data JPA는 일반적인 JPA 기능과는 달리 Entity를 제어하기 위해서 JPA Manager를.. 2020. 8. 27.
[Spring Boot] RESTful Service 강의 정리 (14) - Spring Data JPA를 이용한 Entity 설정과 초기 데이터 생성 [Spring Boot] RESTful Service 강의 정리 (13) - JPA 사용을 위한 Dependency, h2 DataBase 추가와 설정 [Spring Boot] RESTful Service 강의 정리 (12) - JPA(Java Persistence API)와 ORM, Hibernate [Spring Boot] RESTful Service 강의 정리 (11) - Spring Security Configuration 클래스를 이용한 사용자 인증 처.. prinha.tistory.com Creating User Entity and some test data 1) User 클래스(domain)에 데이터베이스 연동 어노테이션 추가 -> Project 실행 시에 데이터베이스 자동 생성 @Entit.. 2020. 8. 25.
[Spring Boot] RESTful Service 강의 정리 (13) - JPA 사용을 위한 Dependency, h2 DataBase 추가와 설정 [Spring Boot] RESTful Service 강의 정리 (12) - JPA(Java Persistence API)와 ORM, Hibernate [Spring Boot] RESTful Service 강의 정리 (11) - Spring Security Configuration 클래스를 이용한 사용자 인증 처리 [Spring Boot] RESTful Service 강의 정리 (10) - Spring Security 자동으로 생성되는 passwor.. prinha.tistory.com H2DB H2DB는 자바 기반의 오픈소스 관계형 데이터 베이스 관리 시스템(RDBMS )입니다. H2DB는 서버(Server) 모드와 임베디드(Embedded) 모드의 인메모리 DB 기능을 지원합니다. 물론 디스크 기반 .. 2020. 8. 25.
[Spring Boot] RESTful Service 강의 정리 (12) - JPA(Java Persistence API)와 ORM, Hibernate [Spring Boot] RESTful Service 강의 정리 (11) - Spring Security Configuration 클래스를 이용한 사용자 인증 처리 [Spring Boot] RESTful Service 강의 정리 (10) - Spring Security 자동으로 생성되는 password로 인증처리 [Spring Boot] RESTful Service 강의 정리 (9) - HAL Browser를 이용한 HATEOAS 기능 구현 [Spring Boot.. prinha.tistory.com 출처 및 참고 : https://victorydntmd.tistory.com/195 1) JPA(Java Persistence API) 자바 ORM 기술에 대한 API 표준 명세를 의미한다. JPA는 자바 .. 2020. 8. 25.
[Spring Boot] RESTful Service 강의 정리 (11) - Spring Security Configuration 클래스를 이용한 사용자 인증 처리 [Spring Boot] RESTful Service 강의 정리 (10) - Spring Security 자동으로 생성되는 password로 인증처리 [Spring Boot] RESTful Service 강의 정리 (9) - HAL Browser를 이용한 HATEOAS 기능 구현 [Spring Boot] RESTful Service 강의 정리 (8) - Monitoring APIs with Spring Boot Actuator [Spring Boot] RESTful Ser.. prinha.tistory.com Implementing Basic Authentication with Spring Security -> 개발자가 지정한 ID와 Password로 간단한 인증처리 구현 방법 두가지 1. applica.. 2020. 8. 25.
[Spring Boot] RESTful Service 강의 정리 (10) - Spring Security 자동으로 생성되는 password로 인증처리 [Spring Boot] RESTful Service 강의 정리 (9) - HAL Browser를 이용한 HATEOAS 기능 구현 [Spring Boot] RESTful Service 강의 정리 (8) - Monitoring APIs with Spring Boot Actuator [Spring Boot] RESTful Service 강의 정리 (7) - Configuring Auto Generation of Swagger Documentation / 개발자 도.. prinha.tistory.com Implementing Basic Authentication with Spring Security -> 자동으로 생성되는 password로 간단한 인증처리 구현 1) pom.xml add dependency o.. 2020. 8. 25.
반응형