메뉴 건너뛰기

Bigdata, Semantic IoT, Hadoop, NoSQL

Bigdata, Hadoop ecosystem, Semantic IoT등의 프로젝트를 진행중에 습득한 내용을 정리하는 곳입니다.
필요한 분을 위해서 공개하고 있습니다. 문의사항은 gooper@gooper.com로 메일을 보내주세요.


2023년 2월 20일 microservice/ftgo_application전체 소스를 다시 받아 build완료후 swagger페이지에 접근하면 다음과 같은 오류가 발생할 수 있다. 

(접근URL : http://dev.gdime.com:8082/swagger-ui/)

이것은 이전 버젼의 swagger를 사용하면서 발생하는 문제인데 이때는 아래와 같이 Configuration Class에 @EnableSwagger2 어노테이션을 붙여준다. 

(ftgo-application프로젝트가 swagger가 swagger2로 변경되면서 발생하는 문제로 보인다 )


--오류내용

Unable to infer base url. This is common when using dynamic servlet registration or when the API is behind an API Gateway. The base url is the root of where all the swagger resources are served


--오류 발생시 조치방법

net.chrisrichardson.eventstore.examples.customersandorders.commonswagger/CommonSwaggerConfiguration.java파일을 다음과 같이 수정한다. 

@Configuration

@EnableSwagger2   <-- 이부분을 추가함

public class CommonSwaggerConfiguration {

A personal place to organize information learned during the development of such Hadoop, Hive, Hbase, Semantic IoT, etc.
We are open to the required minutes. Please send inquiries to gooper@gooper.com.

위로