JAVA/에러

Swagger.... Failed to load API definition. Fetch errorresponse status is 500 /v3/api-docsErrorsHideFetch errorresponse status is 500 /v3/api-docs.........

whyHbr 2024. 5. 21. 23:32
728x90
반응형
jakarta.servlet.ServletException: Handler dispatch failed: java.lang.NoSuchMethodError: 'io.swagger.v3.oas.models.media.Schema io.swagger.v3.oas.models.media.Schema.addProperty(java.lang.String, io.swagger.v3.oas.models.media.Schema)'

Caused by: java.lang.NoSuchMethodError: 'io.swagger.v3.oas.models.media.Schema io.swagger.v3.oas.models.media.Schema.addProperty(java.lang.String, io.swagger.v3.oas.models.media.Schema)'

 

버전 문제였던 거 같다

 

implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.0.3'
implementation 'org.springdoc:springdoc-openapi-ui:1.6.15'

 build.gradle 변경해주니까 

 

 

아 시간 잘 날렸다 

728x90