swagger2 728x90 [Swagger] 스웨거 오류 Parser error on line 2unexpected end of the stream within a flow collection 스웨거를 작성 중 아래와 같은 오류가 발생되었다Unable to render this definitionThe provided definition does not specify a valid version field.Please indicate a valid Swagger or OpenAPI version field. Supported version fields are swagger: "2.0" and those that match openapi: 3.0.n (for example, openapi: 3.0.0). 처음 이 오류를 해결하고 다시 같은 오류를 2번이나 마주했고 구글에도 특별한 자료가 안보여 기록을 한다 Controller에서 @RequestBody로 받는 DTO중 @ApiModelProper.. 2024. 6. 28. [SpringBoot] Swagger 적용하기 Swagger란? Swagger는 REST API를 설계, 구축, 문서화 및 사용하는 데 도움이 되는 OpenAPI 사양을 기반으로 구축된 오픈 소스 도구 세트입니다. 의존성 추가 https://mvnrepository.com/artifact/org.springdoc/springdoc-openapi-ui Swagger는 두가지 버전의 라이브러리가 있는데 springfox-swagger, springdoc-openapi 두가지 중 요근래 많이 사용한다는 doc를 사용하겠다. 버전은 가장 최신버전 중 적당히 사용중인 버전으로 선택했다. build.gradle // https://mvnrepository.com/artifact/org.springdoc/springdoc-openapi-ui implementat.. 2023. 2. 20. 이전 1 다음