미래를 설계하는 개발자

고정 헤더 영역

글 제목

메뉴 레이어

미래를 설계하는 개발자

메뉴 리스트

  • 홈
  • 태그
  • 미디어로그
  • 위치로그
  • 방명록
  • 분류 전체보기 (88)
    • C 언어 (7)
    • C++ 언어 (7)
    • Java (10)
      • Java Error (2)
      • Java Setup (1)
      • Java Study (2)
      • Design Patterns (2)
    • Spring (23)
      • Restfull API (2)
      • SpringBoot-React (5)
      • SpringBoot-MSA (16)
    • WebProgramming (26)
      • HTML (0)
      • CSS (0)
      • Javascript (1)
      • Error (0)
      • JSP (25)
    • 자료구조 (3)
    • DataBase (7)
      • Data Modeling (1)
      • Oracle Database (3)
      • SQL (3)
    • Android (0)
    • 기타 (2)
    • Git (2)
    • Algorithm (1)
    • 끄적끄적 (0)

검색 레이어

미래를 설계하는 개발자

검색 영역

컨텐츠 검색

분류 전체보기

  • SpringBoot MSA (12) - MicroService / Order 서비스 생성

    2023.10.17 by ChrisMare

  • SpringBoot MSA (11) - MicroService / Catalog 서비스 생성

    2023.10.17 by ChrisMare

  • SpringBoot MSA (10) - MicroService / UserService 기타 기능 추가

    2023.10.17 by ChrisMare

  • SpringBoot MSA (10) - MicroService / UserService API Gateway 처리

    2023.10.17 by ChrisMare

  • SpringBoot MSA (10) - MicroService / UserService 비밀번호 암호화 (3)

    2023.10.17 by ChrisMare

  • SpringBoot MSA (10) - MicroService / UserService DB API (2)

    2023.10.17 by ChrisMare

  • SpringBoot MSA (10) - MicroService / UserService H2 연결 (1)

    2023.10.16 by ChrisMare

  • SpringBoot MSA (9) - Spring Cloud Gateway / Load Balancer

    2023.10.10 by ChrisMare

SpringBoot MSA (12) - MicroService / Order 서비스 생성

Order Service 프로젝트를 생성해보자! pom.xml modelmapper 추가! 4.0.0 org.springframework.boot spring-boot-starter-parent 2.4.2 com.example order-service 0.0.1-SNAPSHOT order-service order-service 11 2020.0.0 org.springframework.boot spring-boot-starter-data-jpa org.springframework.boot spring-boot-starter-web org.springframework.cloud spring-cloud-starter-netflix-eureka-client org.springframework.boot sprin..

Spring/SpringBoot-MSA 2023. 10. 17. 18:11

SpringBoot MSA (11) - MicroService / Catalog 서비스 생성

pom.xml 4.0.0 org.springframework.boot spring-boot-starter-parent 2.4.2 com.example catalog-service 0.0.1-SNAPSHOT catalog-service catalog-service 11 2020.0.0 org.springframework.boot spring-boot-starter-data-jpa org.springframework.boot spring-boot-starter-web org.springframework.cloud spring-cloud-starter-netflix-eureka-client org.springframework.boot spring-boot-devtools runtime true com.h2da..

Spring/SpringBoot-MSA 2023. 10. 17. 17:10

SpringBoot MSA (10) - MicroService / UserService 기타 기능 추가

개별 사용자의 상세보기 기능 추가 API를 작성하기 전에 apigateway-service에서 라우트 uri 설정을 /user-service를 호출하여 진행되기 때문에 user-service 프로젝트 > controller > UserController.java requestMapping으로 공통적으로 설정해준다. @RequestMapping("/user-service") 상세보기 및 회원조회 추가 vo > ResponseUser.java 수정 package com.example.userservice.vo; import com.fasterxml.jackson.annotation.JsonInclude; import lombok.Data; import java.util.List; @Data @JsonIncl..

Spring/SpringBoot-MSA 2023. 10. 17. 15:20

SpringBoot MSA (10) - MicroService / UserService API Gateway 처리

앞 게시글에서는 서버 재실행 시 랜덤포트로 인해서 포트가 변경되어졌다. 따라서 앞에서 정리했던 API Gateway service에 등록하여 일정한 포트로 진행해보겠습니다. 우선 apigateway-service에 application.yml 파일에 user-service 라우트를 추가하겠습니다. server: port: 8000 eureka: instance: hostname: localhost client: register-with-eureka: true fetch-registry: true service-url: defaultZone: http://localhost:8761/eureka spring: application: name: apigateway-service cloud: gateway: d..

Spring/SpringBoot-MSA 2023. 10. 17. 13:12

SpringBoot MSA (10) - MicroService / UserService 비밀번호 암호화 (3)

기존 UserService에서 비밀번호 암호화를 하지않았다. Spring Security ( Authentication + Authorization ) 을 사용하여 진행하겠습니다. Authentication: 인증 Authorization: 권한 위 두가지를 하기위해서 1. Spring security jar를 dependency에 추가 2. WebSecurityConfigurerAdapter를 상속받는 Security Configuration 빈클래스 생성 3. Security Configuration 클래스에 @EnableWebSecurity 추가 4. Authentication -> configure(AuthenticationManagerBuilder auth) 메서드를 재정의 5. Password..

Spring/SpringBoot-MSA 2023. 10. 17. 11:32

SpringBoot MSA (10) - MicroService / UserService DB API (2)

jpa를 사용하여 간단한 회원가입 및 조회 등을 진행해보겠습니다. vo > RequestUser.java 전달객체 package com.example.userservice.vo; import lombok.AllArgsConstructor; import lombok.Data; import lombok.NoArgsConstructor; import javax.validation.constraints.Email; import javax.validation.constraints.NotNull; import javax.validation.constraints.Size; @Data public class RequestUser { @NotNull(message = "Email cannot be null") @Size..

Spring/SpringBoot-MSA 2023. 10. 17. 10:11

SpringBoot MSA (10) - MicroService / UserService H2 연결 (1)

API Gateway -> Discovery Server -> MicroService (UserService) 를 만들어보자 Project 생성 및 4가지 Dependency 추가 pom.xml 4.0.0 org.springframework.boot spring-boot-starter-parent 2.4.2 com.example user-service 0.0.1-SNAPSHOT user-service user-service 11 2020.0.0 org.springframework.boot spring-boot-starter-web org.springframework.cloud spring-cloud-starter-netflix-eureka-client org.springframework.boot spri..

Spring/SpringBoot-MSA 2023. 10. 16. 16:38

SpringBoot MSA (9) - Spring Cloud Gateway / Load Balancer

1. first-service 프로젝트의 환경설정에 서버포트를 랜덤으로 지정 server: port: 0 spring: application: name: my-first-service eureka: instance: hostname: localhost instance-id: ${spring.application.name}:${spring.application.instance_id:${random.value}} client: register-with-eureka: true fetch-registry: true service-url: defaultZone: http://localhost:8761/eureka 2. 터미널에서 mvn spring-boot:run을 여러번 하더라도 랜덤으로 포트를 지정하기 때문에..

Spring/SpringBoot-MSA 2023. 10. 10. 11:26

추가 정보

인기글

최신글

페이징

이전
1 2 3 4 ··· 11
다음
TISTORY
미래를 설계하는 개발자 © Magazine Lab
페이스북 트위터 인스타그램 유투브 메일

티스토리툴바