API Gateway Service 프로젝트 생성


사용할 dependency를 등록합니다. Spring Boot DevTools, Gateway, Eureka Discovery Client

현재 어플리케이션의 포트를 8000으로 지정합니다.
Eureka Server를 연동하기 위한 설정을 미리 등록합니다.
Discovery Service 프로젝트 생성

마이크로 서비스가 등록되는 서버를 생성합니다.
application.yml

Policy 서비스 프로젝트 생성

PolicyEntity

PolicyRepository

RequestPolicy

- 클라이언트의 요청 정보를 저장하는 객체입니다.
PolicyDto

PolicyService


ResponsePolicy

- 요청에 응답하는 데이터를 담은 객체(VO)입니다.
PolicyController



- 검색은 클라이언트의 요청에 키워드를 입력받습니다.
- 정책 중 키워드를 포함하는 이름을 가진 모든 정책을 반환합니다.