Skip to content

Spring Boot 4 compatibility ? #289

@antoinelochet

Description

@antoinelochet

Hello,

I have a project which we are exploring the compatility with Spring Boot 4.
I encounter an issue with plugin, here is the stacktrace:

java.lang.ClassCastException: class org.springframework.http.ReadOnlyHttpHeaders cannot be cast to class java.util.Map (org.springframework.http.ReadOnlyHttpHeaders is in unnamed module of loader 'app'; java.util.Map is in module java.base of loader 'bootstrap') at com.epages.restdocs.apispec.BasicSecurityHandler.isBasicSecurity(SecurityRequirementsHandler.kt:31) at com.epages.restdocs.apispec.BasicSecurityHandler.extractSecurityRequirements(SecurityRequirementsHandler.kt:25) at com.epages.restdocs.apispec.SecurityRequirementsHandler.extractSecurityRequirements(SecurityRequirementsHandler.kt:14) at com.epages.restdocs.apispec.ResourceSnippet.createModel(ResourceSnippet.kt:52) at com.epages.restdocs.apispec.ResourceSnippet.document(ResourceSnippet.kt:34) at org.springframework.restdocs.generate.RestDocumentationGenerator.handle(RestDocumentationGenerator.java:191) at org.springframework.restdocs.mockmvc.RestDocumentationResultHandler.handle(RestDocumentationResultHandler.java:52) at org.springframework.test.web.servlet.MockMvc$1.andDo(MockMvc.java:217)

Do you want a contribution ?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions