6.2. 서비스 레지스트리 Java 클라이언트 애플리케이션 작성
서비스 레지스트리 Java 클라이언트 클래스를 사용하여 서비스 레지스트리에 저장된 아티팩트를 관리하기 위해 Java 클라이언트 애플리케이션을 작성할 수 있습니다.
사전 요구 사항
- 사용자 환경에 서비스 레지스트리가 설치되어 실행 중입니다.
- Java 클라이언트 애플리케이션에 대한 Maven 프로젝트를 생성했습니다. 자세한 내용은 Apache Maven 을 참조하십시오.
절차
Maven 프로젝트에 다음 종속성을 추가합니다.
<dependency> <groupId>io.apicurio</groupId> <artifactId>apicurio-registry-client</artifactId> <version>${apicurio-registry.version}</version> </dependency>
<dependency> <groupId>io.apicurio</groupId> <artifactId>apicurio-registry-client</artifactId> <version>${apicurio-registry.version}</version> </dependency>
Copy to Clipboard Copied! Toggle word wrap Toggle overflow 다음과 같이 서비스 레지스트리 클라이언트를 생성합니다.
Copy to Clipboard Copied! Toggle word wrap Toggle overflow
클라이언트가 생성되면 클라이언트의 Service Registry REST API에서 사용할 수 있는 모든 작업을 사용할 수 있습니다. 자세한 내용은 Apicurio Registry REST API 설명서를 참조하십시오.