-
Notifications
You must be signed in to change notification settings - Fork 1
[CHORE] NoSuchMethodError를 openapi 버전이 호환되도록 수정하여 해결 #231
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -50,10 +50,6 @@ dependencies { | |
| implementation 'io.jsonwebtoken:jjwt-impl:0.11.5' | ||
| implementation 'io.jsonwebtoken:jjwt-gson:0.11.5' | ||
|
|
||
| // Excel Export | ||
| implementation 'org.apache.poi:poi-ooxml:5.2.3' | ||
| implementation 'org.apache.poi:poi:5.2.3' | ||
|
|
||
| // Logging | ||
| implementation 'org.springframework.boot:spring-boot-starter-log4j2' | ||
| implementation "com.fasterxml.jackson.dataformat:jackson-dataformat-yaml" | ||
|
|
@@ -74,7 +70,7 @@ dependencies { | |
| testImplementation("com.navercorp.fixturemonkey:fixture-monkey-starter:1.1.11") | ||
|
|
||
| // Rest Docs & Swagger | ||
| implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.6.0' | ||
| implementation 'org.springdoc:springdoc-openapi-starter-webmvc-ui:2.7.0' | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🧩 Analysis chain🌐 Web query:
💡 Result: Short answer: springdoc-openapi 2.7.0 is listed as compatible with Spring Boot 3.4.x, but there are reported problems with the specific combination springdoc 2.7.0 + Spring Boot 3.4.0; the springdoc project recommends using the latest 2.x release (2.8.x) for Boot 3.4.x. [1][2] Sources:
🌐 Web query:
💡 Result: Here are the v2.7.0 release notes / changelog highlights for springdoc-openapi:
Sources:
References: 🏁 Script executed: cd /root && find . -name "build.gradle" -type f 2>/dev/null | head -5Repository: debate-timer/debate-timer-be Length of output: 127 🏁 Script executed: # Check if there are references to poi (Excel) in the codebase
rg "poi|excel|Excel" -i --type gradle --type java -cRepository: debate-timer/debate-timer-be Length of output: 678 🏁 Script executed: cat -n build.gradleRepository: debate-timer/debate-timer-be Length of output: 5023 🏁 Script executed: head -50 src/main/java/com/debatetimer/controller/tool/export/ExcelExport.javaRepository: debate-timer/debate-timer-be Length of output: 383 🏁 Script executed: head -50 src/main/java/com/debatetimer/controller/tool/export/ExcelExportInterceptor.javaRepository: debate-timer/debate-timer-be Length of output: 1900 springdoc-openapi 버전을 2.8.x로 업그레이드하세요. 2.7.0은 Spring Boot 3.4.0과의 호환성 문제가 보고되었습니다. springdoc-openapi 공식 문서에서는 Spring Boot 3.4.x와 호환성을 위해 2.8.x 버전을 권장합니다. 2.7.0은 Spring Boot 3.4.0-M2에 대한 수정사항을 포함하지만, 최종 릴리스(3.4.0)와의 조합에서는 보고된 문제가 있습니다. 2.8.x를 사용하면 NoSuchMethodError 문제를 안정적으로 해결할 수 있습니다. 또한 build.gradle에는 Apache POI 의존성이 없으므로, 원본 리뷰 코멘트의 "Excel 라이브러리 제거" 언급은 부정확합니다. 🤖 Prompt for AI Agents |
||
| testImplementation 'io.rest-assured:rest-assured:5.5.0' | ||
| testImplementation 'org.springframework.restdocs:spring-restdocs-restassured' | ||
| testImplementation 'com.epages:restdocs-api-spec-mockmvc:0.18.2' | ||
|
|
||
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Excel 내보내기 기능과 관련된
ExcelExport.java및ExcelExportInterceptor.java파일이 코드베이스에 남아있는데, Apache POI 의존성을 제거하셨습니다. 이 변경으로 인해 Excel 내보내기 기능이 동작할 때ClassNotFoundException이 발생할 가능성이 매우 높습니다.Excel 내보내기 기능을 제거하려는 의도였다면 관련 클래스 파일들도 함께 제거해야 합니다. 만약 기능이 유지되어야 한다면, 이 의존성들은 다시 추가되어야 합니다.